tonprofde_math 0 Posted May 17, 2005 hi how made to delete folder without this name and how made to delete the history file in C:\windows\history\ ( in win 98) thanks Share this post Link to post Share on other sites
Westi 0 Posted May 17, 2005 Hi, if you dont know the name you cant delete the folder Maybe this works in Win98, too. ;Requires version 3.1.1 #include <Process.au3> $dir = "dirlist.txt" $i = 0 FileDelete ( $dir ) $fol = _RunDos("dir /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) Share this post Link to post Share on other sites