Jump to content

Shutdown script in XP to start cmd.exe!


agarwaldvk
 Share

Recommended Posts

Hi Everybody

I think I need to write a Shutdown script for Windows XP environment to start the DOS Prompt - sounds a bit wierd, I know - but this is in this context!

There is a backup up software that I am trying to use for my home PC in which I have scheduled a backup job to be at Shutdown, that is, just before Shutdown. As a part of the backup process, it needs to run both pre and post batch commands (that is a batch file). As a test run when this backup process is run manually, that is, not at Shutdown, everything work perfectly. However, when I try and run the same backup job at Shutdown, it comes up with the error saying :-

"The cmd.exe application failed to initialize. Click OK to terminate the application."

As a result of this, I am not able to execute either of the pre and post batch commands, that is, the batch file that is supposed to run before and after the actual backup process is run.

As a get around, I thought I could write a batch file to be run at Shutdown that will start the dos prompt application, that is, execute the "cmd.exe" command in a batch file and make this file run at Shutdown. I tried it but the computer just continues to run the batch and nothing happens. I had to restart the computer manually.

The batch only had these command :-

cmd.exe

echo Test

exit

Is there something wrong in this? Why does the computer just continue to run the batch file when there is nothing for it to do in it except start the dos prompt application? Shouldn't the computer turn itself off once it has executed the "exit" statement?

Any assistance here would be greatly appreciated.

Best regards

Deepak

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy