Downld files to a UNC Path using /console /script

Advertisement

testit00
Joined:
Posts:
4
Location:
NJ

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?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,268
Location:
Prague, Czechia

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.
_________________
Martin Prikryl

Reply with quote

testit00
Joined:
Posts:
4
Location:
NJ

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"

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,268
Location:
Prague, Czechia

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

Obviously I need to see the Script.txt to help you.
_________________
Martin Prikryl

Reply with quote

testit00
Joined:
Posts:
4
Location:
NJ

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?

Reply with quote

Advertisement

You can post new topics in this forum