Quantcast
Channel: SQLServerCentral » SQL Server 7,2000 » Administration » Latest topics
Viewing all articles
Browse latest Browse all 482

getting error "The system cannot find the path specified." using xp_cmdshell

$
0
0
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

Viewing all articles
Browse latest Browse all 482

Trending Articles