- Feb 15, 2003
- 693
- 0
- 0
I just downloaded the trial of true image 9.0 build 2337.
My Goal is to be able to make multiple backups of the same partition and not overwrite a previous backup. As far as I can tell True Image doesnt have the ability to append the date to a file name so I wrote a batch file to do it for me
The batch file takes an argument of the file name that is being created. My problem is that the batch file does not seem to run and rename my files. I had this problem with build 2323 also. The script works fine when I call it manually from a command prompt so that shouldnt be the problem. I did notice that as TI is making the image it appends a 1 to the file name then removes the 1 after its done. I also added a 'mkdir' test before any processing is done in the script and it does not even take place. So it seems that the script is not even being run. Below is the script I am using, maybe someone can see some incompatibilities with it and true image?
@Echo OFF
REM TITLE DateName
REM DateName.CMD
REM takes a filename as %1 and renames as %1_YYMMDD
REM
REM -------------------------------------------------------------
REM IF %1.==. GoTo USAGE
REM Test to see if script is being excecuted
mkdir test
Set CURRDATE=%TEMP%\CURRDATE.TMP
DATE /T > %CURRDATE%
Set PARSEARG="eol=; tokens=1,2,3,4* delims=/, "
For /F %PARSEARG% %%i in (%CURRDATE%) Do SET YYYYMMDD=%%l%%j%%k
IF %1 == OS_WINXP_Full.tib GoTo OS
IF %1 == APPS_D_Full.tib GoTo APPS
IF %1 == DATA_E_Full.tib GoTo DATA
S
RENAME %1 OS_WINXP_%YYYYMMDD%.tib
echo renamed OS file
GoTo END
:APPS
RENAME %1 APPS_D_%YYYYMMDD%.tib
echo renamed APP file
GoTo END
ATA
RENAME %1 DATA_E_%YYYYMMDD%.tib
echo renamed DATA file
GoTo END
REM :USAGE
REM Echo Usage: DateName filename
REM Echo Renames filename to filename_YYYYMMDD
REM GoTo END
:END
REM
REM TITLE Command Prompt
My Goal is to be able to make multiple backups of the same partition and not overwrite a previous backup. As far as I can tell True Image doesnt have the ability to append the date to a file name so I wrote a batch file to do it for me
The batch file takes an argument of the file name that is being created. My problem is that the batch file does not seem to run and rename my files. I had this problem with build 2323 also. The script works fine when I call it manually from a command prompt so that shouldnt be the problem. I did notice that as TI is making the image it appends a 1 to the file name then removes the 1 after its done. I also added a 'mkdir' test before any processing is done in the script and it does not even take place. So it seems that the script is not even being run. Below is the script I am using, maybe someone can see some incompatibilities with it and true image?
@Echo OFF
REM TITLE DateName
REM DateName.CMD
REM takes a filename as %1 and renames as %1_YYMMDD
REM
REM -------------------------------------------------------------
REM IF %1.==. GoTo USAGE
REM Test to see if script is being excecuted
mkdir test
Set CURRDATE=%TEMP%\CURRDATE.TMP
DATE /T > %CURRDATE%
Set PARSEARG="eol=; tokens=1,2,3,4* delims=/, "
For /F %PARSEARG% %%i in (%CURRDATE%) Do SET YYYYMMDD=%%l%%j%%k
IF %1 == OS_WINXP_Full.tib GoTo OS
IF %1 == APPS_D_Full.tib GoTo APPS
IF %1 == DATA_E_Full.tib GoTo DATA
RENAME %1 OS_WINXP_%YYYYMMDD%.tib
echo renamed OS file
GoTo END
:APPS
RENAME %1 APPS_D_%YYYYMMDD%.tib
echo renamed APP file
GoTo END
RENAME %1 DATA_E_%YYYYMMDD%.tib
echo renamed DATA file
GoTo END
REM :USAGE
REM Echo Usage: DateName filename
REM Echo Renames filename to filename_YYYYMMDD
REM GoTo END
:END
REM
REM TITLE Command Prompt