Results 1 to 4 of 4

Thread: Temporary Internet Files - UNRESOLVED

  1. #1

    Thread Starter
    Fanatic Member VisionIT's Avatar
    Join Date
    Nov 2002
    Location
    Workin'...
    Posts
    718

    Temporary Internet Files - UNRESOLVED

    Firstly...

    How can i delete the users temporary internet files and internet history when the user clicks to do so.... any idea's on code?

    Secondly...

    Anyway i can detect what OS's the user is running... makes a big difference as regards file locations etc.

    Regards,

    Paul.
    Last edited by VisionIT; Feb 7th, 2003 at 06:35 PM.

  2. #2
    Lively Member dedub's Avatar
    Join Date
    Dec 2002
    Location
    NC
    Posts
    98
    this isnt a 100% solution but this is how I detect 2000 and XP
    VB Code:
    1. Public Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal uSize As Long) As Long
    VB Code:
    1. Dim strDir As String, MaxLen As Long, RetVal As Long
    2.    MaxLen = 255
    3.    strDir = Space(MaxLen)
    4.    RetVal = GetSystemDirectory(strDir, MaxLen)
    5.     If RetVal = 17 Then
    6.                 MsgBox "Windows System Directory is: " & Left(strDir, RetVal), vbInformation
    7.     ElseIf RetVal = 19 Then
    8.             'some other code
    9.    Else
    10.       'some other code
    11.    End If

    as far as your first question look a few threads up, I just replied to a similar question pertaining to temp files that might fit your needs also.
    R.L.T.W. A+, NET+, CCNA

    Doin' my best

  3. #3
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  4. #4
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    The actual name of the folder is gibberish - it is a specail folder maintained by the shell, so you can't find it at all predictably using the file system. You have to browse using the shell (even if you are just calling it to get a result)

    Here is a full explanation of CSIDL constants with code:

    http://www.mvps.org/vbnet/code/browse/csidl.htm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width