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
Synchronzing Via VPN
Moderators: JRL, Dorian (MJT support)
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.
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]
[email protected]