Topic "Problem with console and automated synchronize"

Author Message
ToxMox

Guest


I am having trouble getting the synchronize command in the console to do anything.
I have a session called didb that is properly configured and connects properly to the server I am trying to synch to.
I have a script called syncher.txt with these contents:
Code:
option batch on
option confirm off
option transfer binary
option synchdelete
synchronize remote \\PRINTSERVER\didb\GerberPNG /c:/downloads/GerberPNG
exit


Then from the command line I run this (in my WinSCP3 working directory which is "C:\Program Files (x86)\WinSCP3\):
Code:
winscp3.com /console /script=syncher.txt didb

and here is a text capture of my result:

Code:
C:\Program Files (x86)\WinSCP3>winscp3.com /console /script=syncher.txt didb
Initialisation...
Searching for host...
Connecting to host...
Authenticating...
Using username "root".
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] didb
batch        on
confirm      off
transfer     binary
synchdelete  on
Comparing '\\PRINTSERVER\didb\GerberPNG' with '/c:/downloads/GerberPNG'...


I had them synched and deleted one of the files on the remote side before testing to make sure it would copy it back.
When I run the synchronize command in the gui it sees the missing file and will synch it if I let it. I don't understand why my script doesn't seem to do anything.
Please help. (I am probably doing something stupid)
Thanks for your time.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Have you tried it with the very same directories in the GUI? Because GUI does not support UNC paths, so I wonder how do you get into '\\PRINTSERVER\didb\GerberPNG'.
_________________
Martin Prikryl
ToxMox
[View user's profile]

Joined: 2006-04-25
Posts: 3
prikryl wrote:
Have you tried it with the very same directories in the GUI? Because GUI does not support UNC paths, so I wonder how do you get into '\\PRINTSERVER\didb\GerberPNG'.
Originally I was trying it mapped to my Z: drive which worked in the GUI but not in console so I switched to UNC just to see if it made a difference.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
ToxMox wrote:
Originally I was trying it mapped to my Z: drive which worked in the GUI but not in console so I switched to UNC just to see if it made a difference.

I do not understand. What did not work in the console?
_________________
Martin Prikryl
ToxMox
[View user's profile]

Joined: 2006-04-25
Posts: 3
Neither way works in the console. I was just trying variations to see if it made a difference and in the example I posted above was just my latest attempt.

Using mapped drive Z: in GUI mode works fine. Z: is mapped to \\PRINTSERVER\diDB
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Sorry, I have no idea yet. What version of WinSCP are you using?
_________________
Martin Prikryl
ToxMox
[View user's profile]

Joined: 2006-04-25
Posts: 3
3.8.0 build 312.
Anyway I ended up using something else so don't worry about it.
Thanks anyway.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License