suing fore files

September 13, 2011 at 19:22:06
Specs: Windows XP
how can I log the file names before deleting them?

forfiles.exe -p. -m*.gz -d-5 -c"cmd /c del /P @FILE"

Piping will give the lsit of all the files. I need to list only the files that is been deleted to a log file.

Thank you in advance

See More: suing fore files

Report •

September 13, 2011 at 22:31:26
Did you try using the redirect command. (forefiles.exe >>your log file) before the delete command. Or, I guess you could use the "XCOPY" command, like xcopy C:\Documents\forefiles.exe
Tell me how it works out!

Report •
Related Solutions

Ask Question