Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Delete 2 days old files - xp_cmdshell

Author  Topic 

sqldba20
Posting Yak Master

183 Posts

Posted - 2008-04-18 : 11:02:24
Folks:

I want to delete files on windows from a directory which are 2 days old. I understand we can do that using xp_cmdshell. Anybody with a script would really help me.


Thanks !

mcfly1204
Starting Member

10 Posts

Posted - 2008-04-18 : 11:08:23
Just create a batch file.

http://www.dialogmedical.com/kb/000026/DeletingFilesByAge.pdf
Go to Top of Page
   

- Advertisement -