The interesting thing I have found is, that if I call
ExitWindowsEX(EXW_FORCE,0) under 98, it wont reboot, yet under NT, it works
fine !
 
Typical OS inconcistances....mind you, theres prob. a good reason for
it.....
 
Thanks,

Jeremy Coulter 
Application Developer 

Application Development Centre 
Compaq Computer New Zealand Ltd. 

Phone:  64 3 371 5724 
Fax:            64 3 371 5724 
Mobile:       64 0212533214 
E-mail:[EMAIL PROTECTED]        
Personal Email: [EMAIL PROTECTED] 

 

-----Original Message-----
From: Stacey Verner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 18, 2000 8:30 AM
To: Multiple recipients of list delphi
Subject: RE: [DUG]: Rebooting computer from dos prompt


In dos there is a file called reeboot.com or restart.com which reboots the
machine when executed.
You will find this on a windows** recovery disk.
 
This will reeboot if you are in dos, but I think it only closes the command
window when using a dos window.
 
Hopefully that will help.
 
Stacey 

-----Original Message-----
From: Jeremy Coulter [mailto:[EMAIL PROTECTED]]
Sent: Monday, 17 January 2000 20:49
To: Multiple recipients of list delphi
Subject: [DUG]: Rebooting computer from dos prompt


Hi all.
 
Can anyone tell me how to reboot a computer from a dos prompt in code??
I know how to reboot from an app. but how do you do it from a dos window ??
 
I have a wee consol app. that does some registrationand unregistration of
OCX's and it need to reboot once the unreg., copying, and re-reg has taken
place.
The code i have wont reboot from a does prompt tho....can anyone help ??
 
Thanks,
 
Jeremy Coulter (manager)
Visual Software Solutions
110 Harewood Road
Christchurch
ph +64 3 3521595
fx +64 3 3521596
cell +21 2533214
http://www.vss.co.nz <http://www.vss.co.nz/> 
 

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to