var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: xp_cmdshell to delete files
can I use xp_cmdshell to delete files older than lets say 30 minutes? can anyone show me what the command will look like?
You may want to look in to something from the Windows resource kit or something that offers a "del" command but with more options. Use that and cmdshell.
I just looked in the resource kit and there doesn't appear to be a hefty version of del. Is this some sort of log directory? Do you also control the creation of the files you want to get rid of?
Last edited by DBA-ONE; 07-26-06 at 17:56.
You might be able to do this with robocopy.exe. If you can't delete them directly, you could move the selected files to a separate directory and then issue a delete *.* against that directory.