Home / Microsoft / Microsoft DOS / cool dos commands
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: cool dos commands  (Read 1112 times)
billy joe
Guest
« on: April 09, 2005, 08:13:11 PM »

hello,
i'm wondering if there's any cool dos cammands out there like to open the cd tray, or to turn off the computer. just for fun.
thanks.
IP logged
gussery
Guest
« Reply #1 on: April 10, 2005, 05:57:29 AM »

You need to look at scripts(VB Script, Window Scripting Host, etc.) not DOS commands.
IP logged
pcdoc4christ
Guest
« Reply #2 on: April 10, 2005, 01:42:57 PM »

billy joe:

Check out this link for a full list of commands for MS-DOS 6:

http://www.microsoft.com/technet/archive/msdos/07_refer.mspx

Click on the links in the left column of the Web page to view more DOS commands.  

DOS-like commands that can be used in Windows XP are here:

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx

Regards,
Doc
« Last Edit: April 10, 2005, 01:44:56 PM by pcdoc4christ » IP logged
Sidewinder
Guru



Thanked: 97
Posts: 4,342

Experience: Familiar
OS: Windows 7

« Reply #3 on: April 10, 2005, 06:58:14 PM »

Just for fun, you can use the following script to open CD drawers:

Dim WMP:    Set WMP = CreateObject("WMPlayer.OCX.7")
Dim CDROMs: Set CDROMs = WMP.cdromCollection

If CDROMs.Count >= 1 Then
     For i = 0 to CDROMs.Count - 1
           CDROMs.Item(i).Eject
     Next
End If

Set WMP = Nothing
Set CDROMs = Nothing
WScript.Quit

Cut and paste the script into an editor, save it as cdeject.vbs You can run it from the cmd window or the run box. You must include the vbs extension when you run it.

If your machine is DOS only, you will need to look into the DEBUG command...not for beginners ;D

For even more fun, checkout the SHUTDOWN command to turn off your machine. SHUTDOWN /? will give you all the parameters you may need.



Hope this helps.  8)
IP logged

If you don't know where you are going, any road will get you there

                                                                            -Lewis Carroll
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / cool dos commands « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.106 seconds with 20 queries.