Re: Changing remote directory
"It's failing" is not very useful problem description.
Anyway, the
See also https://winscp.net/eng/docs/faq_script_vs_gui#paths
If this does not help, post a session log file of a successful upload from WinSCP GUI.
Anyway, the
E:\ftp\in\test\files\
looks like a physical path on the remote server valid on the server only. Not FTP path exposed to the world. That will more be like /files/
or /test/files
. Login with GUI and see yourself, what is the actual FTP path syntax of your server like.
See also https://winscp.net/eng/docs/faq_script_vs_gui#paths
If this does not help, post a session log file of a successful upload from WinSCP GUI.