Batch file for deleting folder/files from last 7days
i tried execute above script deleting files machine. getting following error. can please check it
script tired :
forfiles.exe /p "c:\users\vinay\desktop\" /s /m *.* /d -7 /c "cmd /c del @file
getting error -
error: invalid argument/option - '@file' .
type "forfiles /?" usage.
please let me know how fix it. thanks
you have missed closing double quotes @ end of command, try below one
forfiles.exe /p "c:\users\vinay\desktop\" /s /m *.* /d -7 /c "cmd /c del @file"
regards, mc manikandan
Windows Server > Windows Server General Forum
Comments
Post a Comment