• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Re: delete files older than...

S

shruthy

#1
Hi. I am using the following script to delete .bak from a a directory
which are older than 3 days.

Forfiles -p "<path>" -s -m *.* -d -3 -c "Cmd /C del @FILE"

the script works absolutely fine with Windows Vista. But it does not
work on XP.

forfiles.exe was missing in C:\Windows\System32. So I included the file
in the directory.

Still does not work.

Can anyone kindly guide me....

Thanks a ton


--
shruthy
------------------------------------------------------------------------
shruthy's Profile: http://forums.techarena.in/members/222814.htm
View this thread: http://forums.techarena.in/windows-server-help/839803.htm

http://forums.techarena.in
 

My Computer

Users Who Are Viewing This Thread (Users: 1, Guests: 0)