Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to delte multiple file?
#2
Not Solved
Hello here is a script I wrote to remove all the files from a Folder (I hope it helps):

Code:
Set fso=CreateObject("Scripting.FileSystemObject")
CleanPath="C:\Jon_Test_Folder\DeleteFiles\"
FileCount=0
    For Each file In fso.GetFolder(CleanPath).Files
        FileCount=FileCount+1
        Reporter.ReportEvent micDone, "File_Deleted", " '"&File&"': was deleted "
        file.delete
    Next
Reporter.ReportEvent micDone, "Files_Deleted", " There where '"&FileCount&"' Files deleted from '"&CleanPath&"' "
Reply


Messages In This Thread
How to delte multiple file? - by Anug - 05-20-2009, 03:33 PM
RE: How to delte multiple file? - by Jackomcnabb - 05-20-2009, 07:27 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)