1.

Solve : Help with forfiles command?

Answer»

Hi am using forfiles \P c:\backup /s /m *.* /d -7 /c "cmd /c echo @path" Instead of listing files just 7 DAYS old, command lists all files inside c:\backup. Is something wrong with my command?Researching this I GOT mixed signals. Microsoft TechNet used FORWARD slashes, but the forfiles command help used hyphens.

I was able to get this to WORK on a XP machine:

forfiles -pc:\Backups -s -m*.* -d-7 /c "cmd /c echo @path"

Good luck.



Discussion

No Comment Found