agarwaldvk Posted September 6, 2011 Report Share Posted September 6, 2011 Hi EverybodyI 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.exeecho TestexitIs 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 regardsDeepak Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.