When running a script remote directory changes to my documents on its own
Team,
I am working with a very simple script. When I execute the script it keeps trying to change the remote directory to my local documents folder. This only happens on Windows server 2019. I do not have this issue on Windows 10 or Windows Server 2012. Any advice would be most helpful.
-----
winscp Version: 5.17.10
Server: Windows server 2019 standard.
Script:
Log:
I am working with a very simple script. When I execute the script it keeps trying to change the remote directory to my local documents folder. This only happens on Windows server 2019. I do not have this issue on Windows 10 or Windows Server 2012. Any advice would be most helpful.
-----
winscp Version: 5.17.10
Server: Windows server 2019 standard.
Script:
winscp.com /command "open sftp://xx:xx@xx.net/DEV/IN" "put D:\Files\out\My.csv" "exit" >MyLog.log
Searching for host... Connecting to host... Authenticating... Using username "xx". Authenticating with pre-entered password. Authenticated. Starting the session... Session started. Error changing directory to 'C:\Users\xx\Documents'. System Error. Code: 2.