Sync Briefcase in command line

A

Alan Tang

Hello:

Is it possible to perform the sync. trigger by command line?

Thanks a lot!
 
W

wadester

Alan said:
Hello:

Is it possible to perform the sync. trigger by command line?

Thanks a lot!

I don't believe you can with a batch file, but you can with VBScript. I
haven't used this in forever, so it may need some tweaking. Worked great
at my previous job.

set winShell = createObject("shell.application")

' Get a reference to the Folder that contains the Briefcase file.
set folder = winShell.namespace("d:\foldername\")
set folderItems = folder.items

' Get a reference to the specific Briefcase file.
' Note that the .bfc extension is _not_ included.
Set folderItem = folderItems.item("Specific_Briefcase_Filename")

' Invoke the Update All context menu command.
' Note that the string that defines the verb is case
' sensitive and also varies for localized international
' versions of Windows. It must match what you see
' on the context menu. The & indicates which character
' is underscored and is _required_.
folderItem.invokeVerb "&Update All"


wadester
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top