Problem with console and automated synchronize

Advertisement

ToxMox
Guest

Problem with console and automated synchronize

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:
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\):
winscp3.com /console /script=syncher.txt didb
and here is a text capture of my result:

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Problem with console and automated synchronize

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'.

Reply with quote

ToxMox
Joined:
Posts:
3

Re: Problem with console and automated synchronize

martin 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.

Reply with quote

martin
Site Admin
martin avatar

Re: Problem with console and automated synchronize

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?

Reply with quote

ToxMox

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

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum