Saved Bookmarks
| 1. |
Solve : Can this be done when creating a DOS Batch File? (please help!)? |
|
Answer» Hello everyone and thank God that this site exists,I was overviewing this forum for an answer to this problem and saw some posts and responses that came close to what I was after yet I didnt find anything exactly what I was looking for.What I am trying to accomplish is this: I am creating a batch file and was wondering if it (or can it?) be possible to "program in" a command in a batch file that would reboot your computer then "resume" to the next LINE where you left off in your batch file after the reboot step command in a batch file? An example of this would be say that there are 12 steps in your batch file and at the entry where it reboots say at step 7,is there a way where it can resume to move on to step 8 (the next step) where it left off at after it reboots? Another example of what I mean here is that we all know that after partitioning a hard drive we have to "reboot" before you can enter the "format c:" command and then continue from there.I want to be able to create a batch file to go through all 12 steps including a reboot and then resume out the rest of the commands. The idea here is to create a totally "unattended batch file" where all commands can be entered in automatically (including rebooting if need to) from beginning to END and I wasnt sure if this COULD be done or not so I thought I would ask,thanks in advance to everyone out there for helping me out! Have a great weekend! - Mike Hello! I would think that it would be very possible for this to happen, here are my thoughts ... Firstly get the code to restart your computer from a batch file, I don’t have it off hand, but I have seen people post it before; it will probably be on this forum or a 5 min Google SEARCH away. Next you need to sort out the first part of your batch file, the bit before the restart, at some point inside it you are going to have to create another batch file (the SECOND logical half) and copy it to the 'C:\Documents and Settings\Administrator\Start Menu\Programs\Startup' (or similar) folder (before the restart!), then when you do restart your computer, this second logical half will start off and finish the job, don’t forget to delete it from the startup folder after though (just write it into your file) Hope that helps!? Or at least starts you off on your travels? BoB |
|