Synchronzing Via VPN

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
drkaos

Synchronzing Via VPN

Post by drkaos » Wed Mar 12, 2003 5:56 pm

I am wanting to write a script that will allow my people to synchronize a drive via the vpn with one click. At this point I have the script succesfully connecting to the VPN. However after that I am stumped. I can not open the drive (I do not want to use mouse clicks because it will be used on 4 computers and people may change window orientations.)

I want to open the drive
Select the folder
and choose synchronize.

I am using 6.2.3 Professional

Kevin

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed Mar 12, 2003 6:55 pm

Hi,

You can run the Synchronization Manager directly with:

Run>mobsync.exe

Or if you want to open the folder in Explorer without using mouse clicks just do:

Run>explorer.exe path

e.g.

Run>explorer.exe \\computername\sharename

Then you could select Synchronize with:

WaitWindowOpen>sharename*
//send alt-t-s to select Tools/Synchronize
Press ALT
Send>ts
Release ALT

Then you probably need:

WaitWindowOpen>Items to Synchronize
Press Enter

Press Enter should work as the Synchronize button is the default button - but ALT-s should also do it as S is the accelerator key for this button.

But given that all you need to do is:

Run>mobsync

To get the Synchronization Manager up that would probably be easier:

Run>mobsync
WaitWindowOpen>Items to Synchronize
Press Enter

I expect there's a nicer way to perform a Synchronize with VBScript but haven't been able to find anything yet - will let you know if I do.
MJT Net Support
[email protected]

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts