XP batch program to delete multiple files?

Capeta

Banned
Are there any programs for XP that allow me to delete multiple files using only file names that I copy/paste into? I have a text log from a utility with file names including directory paths that I want to copy/paste into a program that does batch file deletions. Alternatively can somebody write me a simple MSDOS batch program that I can edit/copy/paste file names into? Thanks.:D
 
Would be very easy to do with AutoIt. Do you have the full path on each row?

Paste a few examples from the log

Example code where I assume each row in the text file contains a full path to the file you want to delete. File to delete are stored in the deleteList.txt file.

Code:
#include <file.au3>
Dim $aRecords

If Not _FileReadToArray(@scriptDir & "\deleteList.txt",$aRecords) Then
   MsgBox(4096,"Error", " Error reading file   error:" & @error)
   Exit
EndIf

For $x = 1 to $aRecords[0]
   if FileExists($aRecords[$x]) Then FileDelete($aRecords[$x])
Next
 
Last edited by a moderator:
C:\Documents and Settings\Mtr\Cookies\mtr@ad.yieldmanager[1].txt
C:\Documents and Settings\Mtr\Cookies\mtr@adlegend[1].txt
C:\Documents and Settings\Mtr\Cookies\mtr@burstnet[2].txt
C:\Documents and Settings\Mtr\Cookies\mtr@ccbill[2].txt
C:\Documents and Settings\Mtr\Cookies\mtr@com[1].txt
C:\Documents and Settings\Mtr\Cookies\mtr@data1.perf.overture[1].txt
C:\Documents and Settings\Mtr\Cookies\mtr@data3.perf.overture[2].txt
C:\Documents and Settings\Mtr\Cookies\mtr@dealtime[1].txt
 
C:\Documents and Settings\Mtr\Cookies\mtr@ad.yieldmanager[1].txt
C:\Documents and Settings\Mtr\Cookies\mtr@adlegend[1].txt
C:\Documents and Settings\Mtr\Cookies\mtr@burstnet[2].txt
C:\Documents and Settings\Mtr\Cookies\mtr@ccbill[2].txt
C:\Documents and Settings\Mtr\Cookies\mtr@com[1].txt
C:\Documents and Settings\Mtr\Cookies\mtr@data1.perf.overture[1].txt
C:\Documents and Settings\Mtr\Cookies\mtr@data3.perf.overture[2].txt
C:\Documents and Settings\Mtr\Cookies\mtr@dealtime[1].txt

Then my code does the trick... Just download AutoIt and compile it. AutoIt is free :)

www.autoitscript.com

If you want to, you could point directly to the log file... Given it only contains deletable files.
 
Back
Top