|
-
Feb 7th, 2003, 05:59 PM
#1
Thread Starter
Fanatic Member
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.
-
Feb 7th, 2003, 09:47 PM
#2
Lively Member
this isnt a 100% solution but this is how I detect 2000 and XP
VB Code:
Public Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal uSize As Long) As Long
VB Code:
Dim strDir As String, MaxLen As Long, RetVal As Long
MaxLen = 255
strDir = Space(MaxLen)
RetVal = GetSystemDirectory(strDir, MaxLen)
If RetVal = 17 Then
MsgBox "Windows System Directory is: " & Left(strDir, RetVal), vbInformation
ElseIf RetVal = 19 Then
'some other code
Else
'some other code
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
-
Feb 7th, 2003, 09:52 PM
#3
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Feb 7th, 2003, 11:11 PM
#4
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|