H everyone, I'm testing calling an .exe from T-Sql. Here is the code (whic his working btw:DECLARE @sqlCmd varchar(300)set @SqlCmd = 'powershell.exe Robocopy "C:\testSource" "c:\testDestination" *.bak /S'EXEC xp_cmdshell @sqlCmdProblem is though - if there is a space in the path name like say "C:\test Destination" - it throws an error like incorrect wrong parameter ie it thinks its a parameter for robocopy!Any assistance/help here to make it work much appreciated,J.
↧