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.
  • WScript properties and methods like WScript.Sleep or WScript.Echo cannot be used in the script. For more information, consult the Microsoft website.

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 automatically run 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

AllSync - The perfect software for Backup Utility, Sync Folders Windows, Directory Replication, Disk Replication, Laptop Synching, Hard Drive Synchronize, windows Synchronization, Hard Drive Mirroring, Files Synchronization Software, Notebook Synchronizing, Drive Compare, Prevent losing Important Data, PC Imaging, USB Comparison, File Copy, Computer Comparison, Software Backup, Simple Backup, Schedule Backup, System Backup, Data Replication Software, Data Mirroring, Disk Comparison, Synchronize Data, Synchronisation Software, Computer Synching, Windows Backup Software, Windows Sync, Hard Disk Mirroring, Partition Synchronizing, File Server Backup, Folder Backup, Disk Archiving, Network Backup, CD DVD Backup, Backup Synchronize Tool, Server Replication, Automatic Backup, Notebook Backup, Automatic Imaging, Net Backup, Backup Files Software, Backup Service, Backup Generator, Backup XP, Backup to CD, File Archiving, Disk Compare, Synchronize Server, Database Backup, Backup Data File, Backup Device, USB Synching, Folder Archiving, Disk Synchronizing, Notebook Comparison, Disk Synchronize, Backup and Recovery, Back Up Software, CD Backup, PC Backup, Notebook Synching, Mirroring Folder, Synchronize Software, Backup Wizard, Disk Mirroring, Hard Drive Compare, Partition Backup, Backup Hard Disk, Backup HD, Computer Imaging, Directory Backup, Timed Backup, Directory Synchronize, Differential Backup, Backup Scheduling, Folder Sync Tool, Directory Mirroring, Data Synchronizing, Backup Software, File Synchronizing, USB Backup, Disk Synchronization, Partition Copy, Drive Archiving, File Comparison, data Synchronization, Zip Backup, Backup Synchronization Tool, Partition Synching, Folder Synching, Easy Synchronization, Backup Laptop, Easy Backup, Folder Mirroring, Sync Software, Hard Drive Synchronization, Data Synchronization, PC Comparison, Server Synchronizing, Drive Synchronize, Data Backup, Folder Synchronization Software, Automatic File Backup, Backup Drive, CDRW Backup, Folder Synchronizing, Backup and Restore, Server Compare, Notebook Synchronize, File Replication, Server Comparison, Mirror Backup, Backup Disk, Backup Database, Hard Drive Synching, Data Compare, Hard Disk Synchronize, Hard Drive Archiving, Home Backup, Data Synching, Directory Synching, Backup Files, Synchronize Backup software, Document Archiving, Backup Vista, file Synchronization Backup, Hard Drive Synchronizing, File Backup Software, Partition Replication, PC Synchronization, Directory Comparison, Drive Comparison, 1-Click Backup, Hard Drive Backup, Backup Tool, Remote Folder Sync, Lan Backup, Directory Copy, Server Archiving, Network Synchronizing, Synchronize Firectories, server Backup software, Backup PC...
© 2000-2008 Michael  Thummerer  Software  Design