tonprofde_math Posted June 21, 2005 Share Posted June 21, 2005 hi, I will want creat a program which delete cookies , files and folder in temp and tempoy internet files , history. only i don't know the name of the folders in temp and tempoy internet files.so i creat a sript which lists a folder in temp But I do not know how to make so that it removes the listed folders Code was here. #include <Process.au3> $dir = "dirlist.txt" $i = 0 FileDelete ( $dir ) $fol = _RunDos("dir C:\windows\temp /ad /b>" & $dir) ;If you want to list only filenames type: 'dir /a-d /b' $file = FileOpen($dir, 0) If $file = -1 Then MsgBox(0, "Error", "Unable to open " & $dir) Exit EndIf While 1 $i = $i + 1 $line = FileReadLine($file) If @error = -1 Then ExitLoop MsgBox(0, "Folders", $i & ". Folder in " & @scriptdir & " is: " & $line) Wend FileClose($file) Link to comment Share on other sites More sharing options...
nobby Posted June 21, 2005 Share Posted June 21, 2005 You may want to check the help file for "macro reference" The temporary internet files live under the user profile, assuming a standard windows XP or 2000 installation: C:\Documents and Settings\XXXXXX\Local Settings\Temporary Internet Files History C:\Documents and Settings\XXXXXX\Local Settings\History The cookies C:\Documents and Settings\XXXXXX\cookies Temp you can use @tempdir CheersNobby Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now