Scripting Help for Simple Upload
Hi, I am new to Winscp and am trying to automate a very simple upload to a remote server. I have created a .bat file and a .txt file to execute the script. I'm having trouble with the script file. Currently I have this:
Open sftp://<username>:<password>@bloomberg.com/
Put "c:\home\bbdumps\f2226icsh.inc" /log=c:\home\bbdumps\sftplog.txt
exit
The Winscp window opens and says "searching for host" but nothing else happens. So obviously it is not recognizing the syntax I used to open the sftp site and verify user name and password. I am successfully uploading this file manually via drag and drop from Winscp.
Any help would be appreciated highly! James
Open sftp://<username>:<password>@bloomberg.com/
Put "c:\home\bbdumps\f2226icsh.inc" /log=c:\home\bbdumps\sftplog.txt
exit
The Winscp window opens and says "searching for host" but nothing else happens. So obviously it is not recognizing the syntax I used to open the sftp site and verify user name and password. I am successfully uploading this file manually via drag and drop from Winscp.
Any help would be appreciated highly! James