Wilders Security Forums  

Go Back   Wilders Security Forums > Archived Forums > Closed Sub-Forums > Archive of Acronis Support Forums > Acronis True Image Product Line
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

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  
Old August 14th, 2009, 07:05 PM
philetus philetus is offline
Infrequent Poster
 
Join Date: Jul 2009
Location: California
Posts: 12
Default Pre/Post command help

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  
Old August 14th, 2009, 07:28 PM
GroverH's Avatar
GroverH GroverH is offline
Very Frequent Poster
 
Join Date: May 2006
Location: Massachusetts, USA
Posts: 2,405
Default Re: Pre/Post command help

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.
 

Wilders Security Forums > Archived Forums > Closed Sub-Forums > Archive of Acronis Support Forums > Acronis True Image Product Line « Previous Thread | Next Thread »

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Settings
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 04:37 AM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2013, Wilders Security Forums