Skip to main content

Shut down computer after backup completes does not work.

Thread needs solution

A few days ago I replaced my laptop (running Windows7 32 bit) with a computer running Windows7 64 bit. On the laptop the shut down worked OK. But it does not on my new computer. Here's what I did:

In the Task options I created a post task with the following:

Command = shutdown
Working directory = c:\windows\system32
Arguments= -s

WHen I click on the Test command button it shut the computer down (I saved everything before the shut down occurred.

After the computer booted back up again I checked the enteries in the Post command dialog.

THe Command was changed to C:\User\BOB\Desktop\shutdown

When I click on the Test command button I get an error dialog with a message of "User command's execution failed".

0 Users found this helpful

Text and image revised April 14
Bob,
Some suggestions:
Editing an TrueImage task can cause unexpected results. Suggest you create a new TrueImage task.

Use the Post edit/browse option or
1. Command should read
%windir%\system32\shutdown.exe

2. Working directory should read (include the last backward slash)
%windir%\system32\
or if your path might be
C:\Windows\System32\

3. Argument can be a variety of settings but the best success for including a direct command inside TrueImage is to use the simple shutdown command as illustrated below in the picture attachment. Fancier options such as the strike through example (shown below) has better success when included in a command (cmd) or batch (bat) files.
Argument:
-t 300 -f -s -c "SHUTDOWN in countdown. TO CANCEL the shutdo>wn. Click START RUN and type SHUTDOWN -A

For more information about the command options available for the shutdown command, open a command prompt window and at the prompt, type SHUTDOWN /? (and press Enter)

Update: See post #12 & #16 for additional updated revisions.

Attachment Size
25214-88144.gif 24.7 KB

Hello,

Bob, GroverH is absolutely correct. This command should work just fine under any Windows installation.

GroverH, I may suggest you to include this guide to your guide.

Thank you very much for your help.

Bob, please reply to this thread if the command still not works fro you, I'll be glad to assist you.

Thanks GroverH,
I'll create the post-task as shown above. My Backup runs Sunday mornings. I'll post a results on Sunday or Monday.

It failed with errors:

Screenshots of my Edit Command dialog and error report are in the attached Word document.

Attachment Size
26061-88264.docx 141.02 KB

I am unable to read it. Can you put it in a zip file. Is the file extension correct?

The attached zip file contains as Word2007 version (.docx) and Word2003 version (.doc)

Attachment Size
26067-88267.zip 246.67 KB

Bob,
I am having difficulty in reading your attachments. The docx file is all gibberish. The doc file seems to have two images but the first image is blank. I was able to read the2nd image of the log file which indicates something wrong within the shutdown command.

Can you take a print screen capture of the shutdown coding and post it as an image.

Question: simulate editing the image and get to the point where the shutdown commands are on the screen.
Click on the test option. What happens? Does it succeed or does it fail?

Another option in troubleshooting would be copy the shutdown commands into a notepad text file and save it as a .bat file and run it manually to check its results.

Can you see the attached JPG?

When I click on the Test button I get a dialog stating "User Command's execustion failed".

Attachment Size
26125-88279.jpg 65.16 KB

Yes, the image is very good.

It hard for me to tell but there looks to be a space between the dash and the letter A at the end of the code line. It looks to be Shutdown - A but needs to be Shutdown -A

If that does not correct the issue, then try removing the Quote marks at the end of Shutdown -A"

If that does not correct, then shorten the message.

We need to get it to pass the test button before it will work.

If I cut out the -c and the comments, the test works. tomorrow I'll try backup. Post more then

According to the help syntax for xp pro, the -c comment command is supposed to accept up to 127 characters in between a set of quotation marks on both ends.

In W7 the '-' is replaced with the backslash '/' and the /d switch is required if using the /c text switch. A maximum of 511 characters are now allowed.

Having said all that, I tried the script with - and / had the same results as Bob. Entering the same command and parameters into the Windows run box did work.

To send a 'message' Windows requires the user to be part of the Administrators group for the the text to be recognised. I wonder if the command line parser for Acronis has this authority.

OK, I've solved the problem!

It works if you make a cmd file and then get TI to call the cmd file as per the attached png.

Download and add your extra text to shutdown.txt and change the type from txt to cmd

Attachment Size
26146-88282.PNG 44.91 KB
26146-88285.txt 61 bytes

Bodgy,
My testing shows that your solution should work. I've updated my task that runs on Sunday morning. I'll post Sunday my results.

Great!
Colin is a great help to us all.

Question:
What content did you use in your shutdown command? I will need to make changes to other postings I have made with revised instructions using Colin's instructions.

I've attached an image file that shows the contents of the ShutDown.cmd and the Task Post Command Option that worked for me.

Attachment Size
27108-88483.jpg 60.61 KB