(imported topic written by jefta_vito91)
Hi,
How can i delete files that is written on a txt file?
Let say i have a c:\deletelist.txt which list all the files (including the path) that i want to delete. What command should i use? Thanks…
(imported topic written by jefta_vito91)
Hi,
How can i delete files that is written on a txt file?
Let say i have a c:\deletelist.txt which list all the files (including the path) that i want to delete. What command should i use? Thanks…
(imported comment written by pmullins91)
If it were me I would do this, replacing the echo with your delete command, but leaving the quotes around %x
waithidden cmd.exe /c for /f "usebackq" %x in ("c:\deletelist.txt") do @echo "%x"
C:> for /f “usebackq” %x in (“c:\deletelist.txt”) do @echo “%x”
“foo”
“bar”
“baz”
C:>