Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

msdos command line

Posted on 2000-04-29
2
Medium Priority
?
1,058 Views
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
cls
echo                 *****************************************
echo                
echo                              Please remove the CD from the drive
echo                
echo                 *****************************************
echo.
PAUSE
"THIS FINAL COMMAND"........thanks for your help!!
0
Comment
Question by:martinoliver
2 Comments
 

Author Comment

by:martinoliver
ID: 2762928
Adjusted points from 75 to 200
0
 
LVL 3

Accepted Solution

by:
Dassa earned 800 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.

ECHO G=FFFF:0000 ¦ DEBUG

0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

916 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