Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SyncToy Scheduled Event

Status
Not open for further replies.

SkipVought

Programmer
Dec 4, 2001
47,487
US


I got a tip in thread1583-1491554, regarding SynchToy, and it seems to work great when I run it directly.

However, when I run in a scheduled event, after logging into my desktop, no files are transferred. The event runs sucessfully. I simply run it with a -R switch.

I am syncing a laptop with a desktop, from the laptop. There is a User Name and password, and I must be logged in thru the Network for SyncToy to work.

How can I do the login as a scheduled event also, and how can I make SyncToy work as s scheduled event?


Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
have you thought about using a batch file to login prior to running the SyncToy program?

Code:
something like that :
Set objNetwork = WScript.CreateObject("WScript.Network")
strLocalDrive = "M:"
strRemoteShare = "\\server or ip\share"
strPer = "FALSE"
strUsr = "username"
strPas = "password"
objNetwork.MapNetworkDrive strLocalDrive, strRemoteShare, strPer, strUsr,
strPas
source: How to logon to remote windows 2003, XP using command line - bruno1980_


Ben

"If it works don't fix it! If it doesn't use a sledgehammer..."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top