Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Deleting multiple instances of a file in all subdirectories
#1
I haven't managed to find any info on this. Only

del- "X:\Top folder\*.exe"

which only deletes all exe files in the "Top folder". It does not delete exe files in subfolders also.

How can I do that?
#2
Use Enumerate files dialog.

Code:
Copy      Help
Dir d; str sPath
foreach(d "X:\Top folder\*.exe" FE_Dir 0x4)
,sPath=d.FileName(1)
,out sPath
,;del sPath
,
#3
Thanks I'll try that.

5 minute response time Gintaras. You're slowing down in your old age.
#4
Do you enjoy needlessly complicating your life? If you want to delete multiple instances of a file on your computer, use a program called NoClone.

Or QM if you're a sucker for punishment. Smile


Forum Jump:


Users browsing this thread: 1 Guest(s)