Author |
Message |
mdcash
Joined: 21 May 2011 Posts: 1
|
Posted: Sat May 21, 2011 4:47 pm Post subject: Problem with VV_RUN_SUMMARY variable |
|
|
I am writing a simple test global_end script that echoes all of the viceversa environment variables. I have put the following in a .bat file and named the .bat file global_end.bat and placed it in the GlobalScripts directory. In my profile I have selected the checkbox to execute global scripts at the end of the profile execution.
Code: |
echo VV_PROFILE_NAME = %VV_PROFILE_NAME% >> profile.out
echo VV_PROFILE_PATH = %VV_PROFILE_PATH% >> profile.out
echo VV_SOURCE_DISK = %VV_SOURCE_DISK% >> profile.out
echo VV_TARGET_DISK = %VV_TARGET_DISK% >> profile.out
echo VV_EXIT_CODE = %VV_EXIT_CODE% >> profile.out
echo VV_EXIT_CODE_DESC = %VV_EXIT_CODE_DESC% >> profile.out
echo VV_LAST_ERROR = %VV_LAST_ERROR% >> profile.out
echo VV_SOURCE_FOLDER = %VV_SOURCE_FOLDER% >> profile.out
echo VV_TARGET_FOLDER = %VV_TARGET_FOLDER% >> profile.out
echo VV_INCLUDE_SUBFOLDERS_FLAGS = %VV_INCLUDE_SUBFOLDERS_FLAGS% >> profile.out
echo VV_COMPARISON_TYPE = %VV_COMPARISON_TYPE% >> profile.out
echo VV_EXECUTION_METHOD = %VV_EXECUTION_METHOD% >> profile.out
echo VV_EXECUTION_METHOD_DESC = %VV_EXECUTION_METHOD_DESC% >> profile.out
echo VV_LOG_FILE = %VV_LOG_FILE% >> profile.out
echo VV_SOURCE_ARCHIVE_FOLDER = %VV_SOURCE_ARCHIVE_FOLDER% >> profile.out
echo VV_TARGET_ARCHIVE_FOLDER = %VV_TARGET_ARCHIVE_FOLDER% >> profile.out
echo VV_CONFLICT_SUMMARY = %VV_CONFLICT_SUMMARY% >> profile.out
echo VV_RUN_START_TIME = %VV_RUN_START_TIME% >> profile.out
echo VV_RUN_END_TIME = %VV_RUN_END_TIME% >> profile.out
echo VV_DELETED_FILES = %VV_DELETED_FILES% >> profile.out
echo VV_COPIED_FILES_ERRORS = %VV_COPIED_FILES_ERRORS% >> profile.out
echo VV_DELETED_FILES_ERRORS = %VV_DELETED_FILES_ERRORS% >> profile.out
echo VV_RUN_SUMMARY = %VV_RUN_SUMMARY% >> profile.out
echo VV_FINAL_STATUS_SUMMARY = %VV_FINAL_STATUS_SUMMARY% >> profile.out
echo VV_COPIED_FILES = %VV_COPIED_FILES% >> profile.out
|
I get the following. Please notice that the last three "echo" statements are not found in the file as if the environment variables are not available.
Code: |
VV_PROFILE_NAME = profile2
VV_PROFILE_PATH = C:\temp\backup\
VV_SOURCE_DISK = C:
VV_TARGET_DISK = C:
VV_EXIT_CODE = 0
VV_EXIT_CODE_DESC = OK.
VV_LAST_ERROR =
VV_SOURCE_FOLDER = C:\qvcse\
VV_TARGET_FOLDER = C:\temp\backup\qvcse\
VV_INCLUDE_SUBFOLDERS_FLAGS = 1
VV_COMPARISON_TYPE = 0
VV_EXECUTION_METHOD = 2
VV_EXECUTION_METHOD_DESC = Backup (Mirror Source to Target)
VV_LOG_FILE = C:\temp\backup\profile2.log
VV_SOURCE_ARCHIVE_FOLDER =
VV_TARGET_ARCHIVE_FOLDER =
VV_CONFLICT_SUMMARY =
VV_RUN_START_TIME = 5/21/2011 10:03:34 AM
VV_RUN_END_TIME = 5/21/2011 10:03:35 AM
VV_DELETED_FILES =
VV_COPIED_FILES_ERRORS =
VV_DELETED_FILES_ERRORS =
|
I am executing the profile using another .bat file from the command line since I would like to run my profiles as a scheduled task after testing. Am I doing something wrong. I am using the latest version of Pro (just downloaded yesterday). |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8759
|
Posted: Mon May 23, 2011 2:50 am Post subject: |
|
|
Hello,
Were some files copied when you run the profile?
Could it be the variable is multi-line and that is the issue?
thanks _________________ --
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com |
|
Back to top |
|
|
|