Main Page > Browse Categories > Scripts > Script Variables |
Script Variables
Scripts have access to some ViceVersa variables by means of Environment Variables. ViceVersa PRO makes the following variables available.
ViceVersa PRO 2 Build 2011 (or newer):
VV_PROFILE_NAME = The name of the ViceVersa profile
VV_PROFILE_PATH = The path of the ViceVersa profile
VV_SOURCE_DISK = The disk where the source folder is (e.g. c:, d:)
VV_TARGET_DISK = The disk where the target folder is (e.g. c:, d:)
VV_EXIT_CODE = The ViceVersa exit code (only for scripts running AFTER execution)
VV_SOURCE_FOLDER = The profile source folder
VV_TARGET_FOLDER = The profile target folder
VV_INCLUDE_SUBFOLDERS_FLAGS = Subfolders inclusion flag
VV_COMPARISON_TYPE = Comparison Type (0=Size and Timestamp) (1=CRC) (2=Both)
VV_EXECUTION_METHOD = Execution Method (0= None) (1=Synchronization) (2=Backup (Mirror Source to Target)) (3=Replication (Augment Target)) (4=Replication (Refresh Target)) (5=Replication (Update Target)) (6=Consolidation)
VV_LOG_FILE = Log File
VV_SOURCE_ARCHIVE_FOLDER = Source Archive Folder VV_TARGET_ARCHIVE_FOLDER = Target Archive Folder
ViceVersa PRO 2 Build 2014 (or newer):
In addition to the above variables, ViceVersa PRO 2 Build 2014 (or newer) also supports the following variables.
VV_EXIT_CODE_DESC = The textual description of the exit code
VV_EXECUTION_METHOD_DESC = Execution Method Description
VV_RUN_SUMMARY = A summary of the files copied or deleted.
VV_FINAL_STATUS_SUMMARY = The final status summary of all the files in source and target
VV_CONFLICT_SUMMARY = A list of the conflict files found during synchronization (max. 10 are listed)
ViceVersa PRO 2 Build 2015 (or newer):
In addition to the above variables, ViceVersa PRO 2 Build 2015 (or newer) also supports the following variables.
VV_RUN_START_TIME = Run Start Time
VV_RUN_END_TIME = Run End Time
*************************************************
The following is an example of how to get the value of these Environment Variables in a VBscript:
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Echo WshShell.Environment("PROCESS").Item("VV_SOURCE_FOLDER")
WScript.Echo WshShell.Environment("PROCESS").Item("VV_TARGET_FOLDER")
WScript.Echo WshShell.Environment("PROCESS").Item("VV_LOG_FILE")
WScript.Echo WshShell.Environment("PROCESS").Item("VV_EXIT_CODE")
In a BAT file, Environment Variables can be referred to by using %%, for example:
%VV_PROFILE_NAME%
%VV_EXIT_CODE%
No attachments
Did this help you?
Yes No
Statistics
46% found this information useful
Other Options
Printable Version
General Information
No. 65
Author: TGRMN Software
Download ViceVersa
Visit ViceVersa Forum
User Comments