msdos command line

Posted on 2000-04-29
Last Modified: 2012-06-27
I am editting an autoexec.bat file for a Win98 (Symantec Ghost) boot CD and would like to know the msdos command line that allows me to reboot the computer....IE

ghost.exe -clone,mode=load,src=y:homepc.gho,dst=1 -ntil -sure -quiet
echo                 *****************************************
echo                              Please remove the CD from the drive
echo                 *****************************************
"THIS FINAL COMMAND"........thanks for your help!!
Question by:martinoliver

Author Comment

ID: 2762928
Adjusted points from 75 to 200

Accepted Solution

Dassa earned 200 total points
ID: 2763400
The -RB switch forces Ghost to restart the computer at the end of the restore process.  You would just need to make sure the cd isn't bootable.  An alternative would be to include instructions for the user to press CTRL-ALT-DELETE.

You could also create a little debug program to reboot the system and call it at the end of your batch file.  There is actually no DOS command to force a reboot.

The following is a line you can use to force the reboot, you may need to make sure you have the debug program on the disk.



Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Command-line Script 15 72
WINZIP: Zipping up a directory tree (and excluding .ZIP files) 18 86
Folder replication and file move 3 68
Batch file output 20 88
Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now