Pre and Post Commands Overwriting Each Other
Hi guys,
I'm using ATIH 2011 PATCH 3 V. 6942.
I built some batch files that change the power scheme on my system from my custom plan to the High Performance plan at the start of the backup process then back to the standard plan once finish. The point is to prevent the system from entering sleep mode during the procedure which it always seems to do during the validation phase.
My Scripts are named as followed:
Pre-Command: C:/Program Files (x86)/Acronis/Pre-Post Commands/SetPowerSchemetoHP.bat
Post-Command: C:/Program Files (x86)/Acronis/Pre-Post Commands/SetPowerSchemetoTomsAlienwarePlan.bat
The language in each doesn't matter at this point, but I will post at the bottom for anyone that is curious. The problem is, when I set these plans into their corresponding slots, they are overwriting each other. All commands work and test successfully.
For example. I set the Pre-Command to the "SetPowerSchemetoHP.bat" which correctly lists and is set (it's good to go!). Then I set the Post-Command to "SetPowerSchemetoTomsAlienwarePlan.bat" and this also inserts with nominal results.
However, if I go back to check the Pre-command via the EDIT button, it also now reads the path for "SetPowerSchemetoTomsAlienwarePlan.bat" instead of what it read before "SetPowerSchemetoHP.bat"
No matter what I do, in any order, the second plan overwrites the first. It's driving me nuts.
What's the deal?
Thanks
Tom
Script language for anyone that is curious:
You'll need to get the GUID (the long alphanumeric digits) that define your power plan by opening a command prompt and typing powercfg -list
There are some extra commands in there I used for debugging (all the ECHO stuff). Don't add a PAUSE command...Acronis no likey.
Path: C:\Program Files (x86)\Acronis\Pre-Post Commands\""
Pre-Command
cd\
ECHO OFF
powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
ECHO .
ECHO ..
ECHO Power Scheme Set to High Performance!!
ECHO System Should not Enter Sleep/Hibernate
ECHO .
ECHO ..
Post Command
cd\
ECHO OFF
powercfg -setactive 8ab2f008-8d79-439e-9bf2-6947f7a0277b
ECHO .
ECHO ..
Echo Power Scheme Set to Tom's Alienware Plan!!
ECHO System Will Now Automatically Enter Sleep/Hibernate
ECHO .
ECHO ..
- Accedi per poter commentare
Grover,
I tried following the instructions you put forth above, but the issue still arises.
If I select from the drop down menu the plan I want, then click edit. The PATH for the last batch file I selected is inserted into the command line of the opposite Pre/Post command window.
I'd like to record on video what I'm seeing, I'll see if I can get a utility together to show you what's going on then upload it to a 4share account.
- Accedi per poter commentare
Here is the AVI. It's only about 2.5 minutes long but it's about 155 MB, sorry about that, I don't have a good converter on this machine. If you'd like me to spend some more time shrinking it I'll see if I can find some time tonight. I can also try posting to Youtube if you'd rather it was streamed.
Deleted, see Youtube Video below
The site automatically scans for viruses btw, you will see the confirmation at the top of the page.
- Accedi per poter commentare
Tom,
I am unable to download as a login to 4share is required--which I do not choose to do. Upload to Youtube and I will look at it there. File size is not an issue.
2012 is installed for me so I cannot look at what is happening in 2011. I assume you are using the most recent release to 2011 as the chances of any future changes to 2011 is very very slim.
You wrote:
"If I select from the drop down menu the plan I want, then click edit. The PATH for the last batch file I selected is inserted into the command line of the opposite Pre/Post command window.
Before you leave the pre/post window, are you not able to select the proper bat from the drop down windows (both)? Relook at both drop down windows before giving up.
In 2012, I can choose from the drop down without using the edit option. I would only need to use the edit option if the bat file has never appeared before in the pre/post windows.
- Accedi per poter commentare
Here is the updated link. I've deleted the 4shared.com one. I didn't know it was asking people to login to download because I was always logged into the site. I'll have to find a more convenient file sharing site.
Comes in really fuzzy unless you choose a higher quality playback.
As you can see in the video I'm able to select the proper batch files, but when I click EDIT on the previously set command, the path shows the other command. Not sure if it's going to cause an issue, I'll have to test it out when I have some free time.
Cheers
Tom
- Accedi per poter commentare
Hi Tom,
Thanks for the new link. I viewed it several times and the quality was very good. Your method is very near the same as the one I had used in my guide.
One difference in our procedures is that I work all my backups from an assortment of backup tasks and I resist editing an existing task. I create one or more tasks with the pre/post settings I want (edit & browse for actual batch file) and then save the task. I run the task either manually or via schedule--the method varies. I never create or execute a task via the "browse for" option. I create all my tasks by clicking on the "disk & partition backup" option.
My pre/post power batch files are always the same
pre activates an always on power configuration
post resets the power settings back to normal and additionally shuts down the computer.
I
- Accedi per poter commentare