Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

aj84

Figured out the issue. The script file referenced not only establishes connection but also has a put command in it.
aj84

Simple PUT question

Tried looking all over before posting. Trying to run a simple PUT command to move all files from a server to a local path. Not sure what I'm doing wrong here.

cd "C:\Program Files (x86)\WinSCP\"

.\WinSCP.com /ini=nul /script=G:\MYScripts\Script.txt /command `
"put \\MYSERVER\FOLDER\*.* LOCALPATH/FOLDER/" `
"exit"


The log shows the following error
Connecting to ServerName...
TLS connection established. Waiting for welcome message...
Connected
Starting the session...
Session started.
Active session: [1] user@ServerName
File or folder '%1%' does not exist.
System Error. Code: 2.


The system cannot find the file specified
(A)bort, (R)etry, (S)kip, Ski(p) all: Abort

Any help is appreciated.