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

martin

Re: script.txt

So where's your UNC path?
You should use
get *.* \\servername\directory\directory\
Also in general your script is not robust.
Please read guide to scripting:
https://winscp.net/eng/docs/guide_automation
testit00

I got it...

Reading your reply made me add lcd to the script.txt.
is it possible to have the files download to 2 destinations?
testit00

script.txt

script.txt = get *.*
exit


Thats it.
martin

Re: Heres the script... in Powershell.. and winscp version 4.2.9

Obviously I need to see the Script.txt to help you.
testit00

Heres the script... in Powershell.. and winscp version 4.2.9

(We are not able to use the .net libraries with powershell at this point in time and we are not able to upgrade winscp either).


The script is in powershell with variables identifying the download path. The download path where I need the files placed is on a UNC path (\\servername\directory\directory\).


# Get File From Remote Site
.\WinSCP.exe /console userid-incoming@xx.xx.xx.xxx /script=Script.txt /Log="$LogPath\$LogFile"
martin

Re: Downld files to a UNC Path using /console /script

There's no special syntax. Please post your script and the log file or error message.
testit00

Downld files to a UNC Path using /console /script

I am getting an error when saving the unc path in the winscp session. What is the command to include in the /script = script.txt to have the files download to a unc path?