Scripting ... problem with xp_cmdshell
Using Winscp manually, it works great (recently installed Winscp 3.8.2).
However, we have a script that does some setup and then attempts to use winscp to sftp it to a defined server. I've tried both examples below (with both winscp3.exe and winscp3.com) and cannot get it to work. Any ideas?? Feel like I've tried everything. :?
TEST 1: ERRORS out with----'winscp3.exe' is not recognized as an internal or external command,operable program or batch file.
EXEC master..xp_cmdshell 'cd "c:\program files\winscp3"';
EXEC master..xp_cmdshell 'winscp3.exe /console /script="c:\temp\winscp.txt" WINSCPSession'
TEST 2: ERRORS out with -----'c:\program' is not recognized as an internal or external command, operable program or batch file.
EXEC master..xp_cmdshell '"c:\program files\winscp3\winscp3.exe /console /script="c:\temp\winscp.txt" WINSCPSession'
However, we have a script that does some setup and then attempts to use winscp to sftp it to a defined server. I've tried both examples below (with both winscp3.exe and winscp3.com) and cannot get it to work. Any ideas?? Feel like I've tried everything. :?
TEST 1: ERRORS out with----'winscp3.exe' is not recognized as an internal or external command,operable program or batch file.
EXEC master..xp_cmdshell 'cd "c:\program files\winscp3"';
EXEC master..xp_cmdshell 'winscp3.exe /console /script="c:\temp\winscp.txt" WINSCPSession'
TEST 2: ERRORS out with -----'c:\program' is not recognized as an internal or external command, operable program or batch file.
EXEC master..xp_cmdshell '"c:\program files\winscp3\winscp3.exe /console /script="c:\temp\winscp.txt" WINSCPSession'