That would require A LOT of work. First you would need to program all of the .DLLs into some kind of QB library. I remember a few off hand:
RUNDLL32.EXE USER,EXITWINDOWS - Shuts Windows down.
RUNDLL32.EXE USER,DISABLEOEMLAYER - Locks Windows out.
Windows controls EVERYTHING it does using .DLL files and .EXE files through the program RUNDLL.EXE and RUNDLL32.EXE. Play around with RUNDLL and RUNDLL32 and discover .DLL and .EXE functions. Then you can do anything to Windows from QB/DOS. I'll send you more RUNDLL commands once I find my list. I think you can find them online using like Yahoo or something. Try it!
Examples:
[Your task manager screen]
*** Options: ***
1. Close "SOL.EXE" - Solitare
2. Close "WINWORD.EXE" - Microsoft Word 2000
3. Shut Down
4. Log Off
Enter Selection:
[User selects #3, Shut Down]
COLOR 4,0
PRINT "Computer is shutting down..."
SHELL "C:"
SHELL "CHDIR C:\WINDOWS"
SHELL "RUNDLL32.EXE USER,EXITWINDOWS"
SYSTEM/EXIT (your "Exit QB program" command)
[computer shuts down]
Now, pulling options from the task manager is a little more complicated, but I KNOW there is a .DLL for it. Look around, man!
Doug
Doug
