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:
41,469
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.

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

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

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

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum