Sync Briefcase in command line

  • Thread starter Thread starter Alan Tang
  • Start date Start date
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
 
Back
Top