Jump to content

tonprofde_math

Members
  • Posts

    16
  • Joined

  • Last visited

tonprofde_math's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. sorry ,i am sorry.it's the wrong code .when i run the scrip ,it would be said that it do not do anything, I wait and at the end of one moment the icon of autoit "A" alternate with a cross I do not understand why script doesn't work. the true code was here $fSearch = FileFindFirstFile("C:\WINDOWS\Temporary Internet Files") If @error <> 0 Then MsgBox(0, "Error in FileFindFirstFile", @error) Exit EndIf While @error = 0 $fName = FileFindNextFile($fSearch) If StringInStr(FileGetAttrib($fName), "D") Then DirRemove($fName, 1) Else FileDelete($fName) EndIf WEnd
  2. 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 ( i use windows 98) Code was here ;Requires version 3.1.1 #include <Process.au3> $dir = "dirlist.txt" $i = 0 FileDelete ( $dir ) $fol = _RunDos("dir C:\windows\Temporary Internet Files\ /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) i seems not work?why?how do to work?
  3. 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 ( i use windows 98) Code was here ;Requires version 3.1.1 #include <Process.au3> $dir = "dirlist.txt" $i = 0 FileDelete ( $dir ) $fol = _RunDos("dir C:\test\ /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) DirRemove("C:\test\" & $line &"\" ,1) why do not its work
  4. 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 ( i use windows 98) 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)
  5. hi how all delete in temp (folders and files)
  6. 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)
  7. hi, I will want creat a program which delete cookies , files and folder in temp and tempoy internet files , history. Hire my script #include <GUIConstants.au3> GUICreate("cleaner :votre choix?", 460, 250) $Label = GUICtrlCreateLabel("veuillez sélectioner les dossiers dans les quelles vous voulez supprimer tous les fichiers", 10, 30) $cobutton = GUICtrlCreateCheckbox("cookies",10,80, 100, 20) $tebutton = GuiCtrlCreatecheckbox("temp",10,110,150,20) $te2button = GUICtrlCreateCheckbox("tempory internet files",10,140,150,20) $hibutton = GUICtrlCreateCheckbox("historique",10,170,150,20) $subutton = GUICtrlCreateButton("suivant",360,210,65,20) $anbutton = GUICtrlCreateButton("annuler",280,210,65,20) GUISetState () while 1 $msg = GuiGetMsg() select case $msg = $anbutton Exit endselect If $msg = $GUI_EVENT_CLOSE Then ExitLoop wend I woulde like to know to do for when i click on checkbox then i click on next ,i obtaint msgbox
  8. how delete history in C:\windows\history\
  9. when i clicked on cookies; i obtaint the windows (1) and when i cliked on next : i obtaint windows (1).so i wil obtaint the windows (1) click on cookies and next .where is the eror in my scipt #include <GUIConstants.au3> GUICreate("cleaner :votre choix?", 460, 250) $Label = GUICtrlCreateLabel("want sélectioner the files in which you want to remove all the files", 10, 30) $cobutton = GUICtrlCreateCheckbox("cookies",10,80, 100, 20) $tebutton = GuiCtrlCreatecheckbox("temp",10,110,150,20) $te2button = GUICtrlCreateCheckbox("tempory internet files",10,140,150,20) $hibutton = GUICtrlCreateCheckbox("history",10,170,150,20) $subutton = GUICtrlCreateButton("next",360,210,65,20) $anbutton = GUICtrlCreateButton("cancel",280,210,65,20) GUISetState () while 1 $msg = GuiGetMsg() select case $msg = $anbutton Exit Case $msg >= $cobutton AND $msg <= $subutton MsgBox(0,"test","test") endselect If $msg = $GUI_EVENT_CLOSE Then ExitLoop wend
  10. when i clicked on cookies; i obtaint the windows (1) and when i cliked on next : i obtaint windows (1).so i wil obtaint the windows (1) click on cookies and next .where is the eror in my scipt #include <GUIConstants.au3> GUICreate("cleaner :votre choix?", 460, 250) $Label = GUICtrlCreateLabel("want sélectioner the files in which you want to remove all the files", 10, 30) $cobutton = GUICtrlCreateCheckbox("cookies",10,80, 100, 20) $tebutton = GuiCtrlCreatecheckbox("temp",10,110,150,20) $te2button = GUICtrlCreateCheckbox("tempory internet files",10,140,150,20) $hibutton = GUICtrlCreateCheckbox("history",10,170,150,20) $subutton = GUICtrlCreateButton("next",360,210,65,20) $anbutton = GUICtrlCreateButton("cancel",280,210,65,20) GUISetState () while 1 $msg = GuiGetMsg() select case $msg = $anbutton Exit Case $msg >= $cobutton AND $msg <= $subutton MsgBox(0,"test","test") endselect If $msg = $GUI_EVENT_CLOSE Then ExitLoop wend
  11. hi, veiled I want to make a programe which removes the cookies the files in temp and tempory Internet files. how add 1 function for 2 button (in my script there is plusior checkbox and a 1 button next.i want that when I want click on 1 checkbox and next it me execute 1 "command")
  12. hi, veiled I want to make a programe which removes the cookies the files in temp and tempory Internet files. but there are folder in tempoy internet files of which i don't know her name how all delete in folder (files and FOLDERS)
  13. hi, veiled I want to make a programe which removes the cookies the files in temp and tempory Internet files. But the site of the repertories is different according to the systéme from exploitation. So I would like know, how add 1 function for 2 buttons (when I click on the checkbox win 98 and that I make next , it posts me a GUI)
  14. hi how to connect 2 GUI?
  15. hi, is c++ builder 4 it's to old? thanks
×
×
  • Create New...