Hi,I am getting error "The system cannot find the path specified." using xp_cmdshell, tyring to copy file from one folder to another. Following is code i execute:DECLARE @fn char(6), @cmd varchar(100)SET @fn=REPLACE(convert(char(8),getdate(),1),'/','')SET @cmd ='Move C:\Shippment_Tracking\ShippmentTracking.txt C:\Shippment_Tracking\Archive\'+@fn+'.txt'EXEC master..xp_cmdshell @cmd
↧