Please What is the sutdown command????
Please What is the sutdown command????
(OP)
ALL I want is the shut down command to shut down the computer, please don't tell me to look in the help as i have already
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS Contact USThanks. We have received your request and will respond promptly. Come Join Us!Are you a
Computer / IT professional? Join Tek-Tips Forums!
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting Guidelines |
Please What is the sutdown command????
|
Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.
Here's Why Members Love Tek-Tips Forums:
Register now while it's still free!
Already a member? Close this window and log in.
RE: Please What is the sutdown command????
You might try...
WinDir$ = ENVIRON$("windir")
KillWin$ = WinDir$ + "\Rundll.exe User.exe,ExitWindows"
SHELL KillWin$
...but this might be more work than what it is worth. Windows doesn't like to shut down DOS apps automatically and it is likely to prompt you to click okay to close your program and Windows or click Cancel to continue working.
Somebody post here if you know an easy way to do this using BASIC (with or without calls to the ROM BIOS).
Alt255@Vorpalcom.Intranets.com
RE: Please What is the sutdown command????
Alt255@Vorpalcom.Intranets.com
RE: Please What is the sutdown command????
http://www.ocf.berkeley.edu/~horie/shutdown.bas
RE: Please What is the sutdown command????
Alt255@Vorpalcom.Intranets.com
RE: Please What is the sutdown command????
I think your way is the best way for Winxx machines.
None of the low-level techniques work on the new Windows 32 environment. The most they do is close the DOS box. In the WinNT/2K environments, shutting down the computer may be disabled for a given account. In that case, there's no way to do it, as far as I know.
boot1:
DEF SEG = &H40
POKE &H473, 12 '0000 for cold boot
POKE &H472, 34
DEF SEG = -1: '-1==&HFFFF
CALL ABSOLUTE(0)
END
boot2:
OUT 100, 254
boot3:
SHELL "START"
boot4:
'int 19h using CALL INTERRUPT(&h19,regs,regs)
boot5:
OUT &H64, &H92
RE: Please What is the sutdown command????
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.
Click Here to join Tek-Tips and talk with other members! Already a Member? Login