Hopefully a simple scripting question
Greetings,
Here is my script...
winscp.com /script="d:\sftpscript.txt"
and sftpscript.txt contains:
open username:password@server:port -hostkey="hostkey" -timeout=60 -passive
cd /dir1/dir2
What I want to be able to do is perform the "cd /dir1/dir2" line, or change the remote directory in either the opening "winscp.com" line of the script or the "open" line of the script. Is there either a parameter or argument I can add when I open the connection that will set my working remote directory for me? Thanks!
Here is my script...
winscp.com /script="d:\sftpscript.txt"
and sftpscript.txt contains:
open username:password@server:port -hostkey="hostkey" -timeout=60 -passive
cd /dir1/dir2
What I want to be able to do is perform the "cd /dir1/dir2" line, or change the remote directory in either the opening "winscp.com" line of the script or the "open" line of the script. Is there either a parameter or argument I can add when I open the connection that will set my working remote directory for me? Thanks!