Computing.Net > Forums > Disk Operating System > batch file

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

batch file

Reply to Message Icon

Original Message
Name: thumb
Date: February 12, 2002 at 21:16:12 Pacific
Subject: batch file
Comment:

i want to create a batch file that will emulate the keystrokes CTRL+ALT+DEL, or any other command that will cause my computer to shutdown by simply calling the batch file.

please help me out i am currently learning the batch language but i have no idea how to do the above.


Report Offensive Message For Removal


Response Number 1
Name: Adam
Date: February 12, 2002 at 22:28:29 Pacific
Reply: (edit)

This web page may help you get started:

PC Computer Debug Routines

Another thing that may or may not be of use to you is if you use a Windows 98 boot disk, it will extract a bunch of files onto a RAM drive. One of these files is "Restart.com" Needless to say, running this file will restart your computer. I hope that helps you!


Report Offensive Follow Up For Removal

Response Number 2
Name: thumb
Date: February 12, 2002 at 23:04:34 Pacific
Reply: (edit)

i will check out the site you posted

and thanks for the win98 bootdisk info, i just happen to have one of those laying around!

cheers!!


Report Offensive Follow Up For Removal

Response Number 3
Name: bundat
Date: February 12, 2002 at 23:48:43 Pacific
Reply: (edit)

for rebooting, try this:

::start
@echo off
echo @echo off > reboot.com
reboot
::end


Report Offensive Follow Up For Removal

Response Number 4
Name: Secret_Doom
Date: February 13, 2002 at 21:07:54 Pacific
Reply: (edit)

Restarting method by batch:


16. Reboot the computer from a batch file.
These work in MS-DOS 6.22/Windows 3.11. Use at your own risk.

:: warmboot.bat
@ECHO E 0040:0072 34 12 >%temp%.\reboot.dat
@ECHO G=FFFF:0000 >>%temp%.\reboot.dat
@DEBUG.EXE nul

:: coldboot.bat
@ECHO G=FFFF:0000 | DEBUG.EXE >nul

Extracted from http://home7.inet.tele.dk/batfiles/main/batchfaq.htm.

PS: Hey Laurence Soucy, I posted here your FAQ's method because I was having trouble on accessing your batch FAQ with the "#16" sufix (IE5.5)

-- Secret_Doom - Leonardo Pignataro --

secret_doom@hotmail.com
www.batch.hpg.com.br


Report Offensive Follow Up For Removal

Response Number 5
Name: Glenn Gagné
Date: April 22, 2002 at 06:28:30 Pacific
Reply: (edit)

You can use this batch file if you use Windows 98 or 98 SE.

@echo off
c:
cd \windows
rundll32.exe shell32.dll,SHExitWindowsEx 2


Report Offensive Follow Up For Removal


Response Number 6
Name: Drew Bailey
Date: May 27, 2002 at 06:07:32 Pacific
Reply: (edit)

thanks for the information bat files..i appreciate it.


Report Offensive Follow Up For Removal






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home








Do you have a Desktop Computer anymore?

No
Yes, but only at work
Yes, but its rarely used
Yes, and its a workhorse


View Results

Poll Finishes Today.
Discuss in The Lounge
Poll History




Data Recovery Software