Profile Properties — Running Visual Basic Scripts

!This profile property isn't available unless Expert Mode is activated.

This profile property enables you to run a Visual Basic script (.vbs) before and after running a profile.
Upon Profile Startup/Completion
The file path of the specified VB script is shown in the box. Red highlighting indicates that the VB script couldn't be found by AllSync. The following buttons are available:
  • New – Create new VB script
  • Select – Select VB script
  • Edit – Edit VB script
  • Remove – Remove VB script
  • Test – Test VB script
Run script for:
This option enables you to specify the operation during which the script is to be started. The following options are available:

Requirements and Tips

  • Visual Basic scripts can't be used with AllSync unless Microsoft Windows Scripting Host is installed on your computer. You can check this by running the sample script Test.vbs.
  • The properties and methods of the WScript object have to be called without "WScript." Example: Instead of WScript.CreateObject only CreateObject has to be used.
  • Some properties and methods of the WScript object, e.g. Sleep or Echo, cannot be used in the script or possess limited functionality. For more information, consult the Microsoft website.
You also have the option of directly starting your scripts that use the WScript object using the External/Programs profile property (e.g.: "wscript.exe" test.vbs) and thus circumvent any restrictions.

Placeholders

The activated source and destination folder can be used by inserting the following placeholders in the script:
  • [Source1] is replaced by the first source folder activated in the source folder list, [Source2] by the second one, etc.
  • [Destination1] is replaced by the first destination folder activated in the destination folder list, [Destination2] by the second one, etc.

Options

Automatically abort script after:
This option enables you to specify that the script be automatically aborted after a certain number of seconds. When activating the Script may use GUI language elements (e.g. MsgBox) option, a dialog containing a warning pops up when the time has elapsed. The user has to acknowledge the warning.
Script may use GUI language elements (e.g. MsgBox)
An error is generated when this option is deactivated and GUI language elements have been used in the script, e.g. the MsgBox command. Deactivate this option when the profile is run automatically via AllSync Scheduler so that no dialog pops up and has to be acknowledged by the user.
Abort profile ....
This option causes the profile to be terminated if an error occurs in the script or the script cannot be run for launching the profile.

Sample Scripts

The sample scripts supplied with AllSync are located in the Scripts subdirectory of the AllSync application folder. The sample scripts are continuously updated and adapted by us as needed. When making changes to the sample scripts, make sure to save them under a different name otherwise they will be overwritten and your changes lost the next time you update AllSync.

The following scripts are currently available:
Test.vbs
This script enables you to test the functionality of Microsoft Windows Scripting on your system and get an impression of the possibilities offered by Visual Basic Scripting.
Outlook.vbs
This script enables you to shut down Microsoft Outlook.
OutlookExpress.vbs
This script enables you to shut down Microsoft Outlook Express.
Run.vbs
This script enables you to run any program by inserting the Prg variable in the program path.
KillTask.vbs
This script enables you to end a task. Call Windows Task Manager to find out the requisite taskname.
ScreensaverOff.vbs \ ScreensaverOn.vbs
These two scripts enable you to respectively deactivate and reactivate your screensaver.

Useful Websites Providing Information on VB Scripts

The award-winning tool for synchronize software - backup applications - how to synchronize files - folders synch - windows directory sync - remote backup software - usb sync - pc back up - windows backup utility - backup disk - synchronization folders - xp backup utility - windows 2003 backup software - dvd backup software - xp backup software - backup database - windows backup software - data replication software - sync software - windows automatic backup - good backup software - computer back up - xp backup software - backup incremental - windows 2000 server backup - backup laptop - backup outlook express - backup utility - windows vista backup - pc synchronization - restore data - data backup software - backup best software - ftp synchronize - archiving - easy backup wizard - file synch - windows server backup software - laptop synchronization - system backup software - auto backup software - data sync - data backup and recovery - back up disk - directories synchronize - synchronizer - backup microsoft - mirror folders - usb backup software - windows file sync - backup software xp - windows backup software - best back up software - automatic backup software - network sync - clickfree automatic backup - system backup software - hdd backup - directory synchronization - backup tools - file synchronizing - windows backup utility - backup softwares - back up files - mirroring file - backups software - service backup - windows 2003 backup - backup servers - clickfree backup - windows synchronization - differential backup - backup to dvd - folder synchronize - xp file synchronization - pc synch - top backup software - nt backup - express backup software - simple backup - backup network software - file synchronization software - backup mirror - backup cd download - backup pc - xp synchronize - one touch backup software - file replication software - exchange backup software - sync file - backup generator - auto sync - windows backup program - backup windows xp - disk to disk backup...
© 2000-2010 Michael  Thummerer  Software  Design