Home Forums SQL Server 2008 SQL Server 2008 - General xp_cmdshell RE: xp_cmdshell
zouzou
SSCrazy
Points: 2292
More actions
December 13, 2012 at 4:16 am
#1568241
I mapped the network drive in sql sevrer box and i have ran this
EXEC xp_cmdshell 'FORFILES /p I:\ /m *.* /d -30 /c "CMD /C del /Q /F @FILE"'
ERROR: The specified directory does not exist.:w00t: