![]() |
|
|||||||
| Acronis Forum Sections Closed! |
| As of August 15, 2009: Please be aware that the Acronis Forum sections have closed. No new threads or replies may be made in these sections. See this announcement for more information. |
|
|
Thread Tools | Search this Thread |
|
#1
|
|||
|
|||
|
I have a MS-Dos batch file
@echo off echo --- Prep for Acronis True Image, Ctrl-C to cancel --- if not exist F:\backup\main_c\1CD*.tib goto end if exist F:\backup\main_c\4CD*.TIB del F:\backup\main_c\4CD*.TIB if exist F:\backup\main_c\3CD*.tib ren F:\backup\main_c\3CD*.tib 4CD*.tib if exist F:\backup\main_c\2CD*.tib ren F:\backup\main_c\2CD*.tib 3CD*.tib if exist F:\backup\main_c\1CD*.tib ren F:\backup\main_c\1CD*.tib 2CD*.tib :end When I put the .bat in pre and click test, it makes 1CDRIVE.TIB in F and says the command worked. When I start the backup, it changes 1CDRIVE.TIB to MyBackup1.tib. What am I doing wrong? |
|
#2
|
||||
|
||||
|
If F is an external drive, it must be attached during the edit to include the pre/post commands.
By putting this into the pre command, you are wanting the bat file to rename the files before the backup is performed. By putting this into the post command, the batch file will perform the rename after the backup is over. This is very similar to what Brian K wrote in this posting: http://www.wilderssecurity.com/showthread.php?t=244560 Post #9, 12, 13 I'm not sure the test functions works correctly. Perform your own test and see if the batch works before you place it inside the pre/post options. Are you using the * as a wildcard or a simple character? If as a simple character, suggest you use a dash or underscore.
__________________
Last edited by GroverH : August 14th, 2009 at 07:47 PM. |
| « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|
|