<body><!--'"</title></head>--> <script type="text/javascript"> //OwnerIQ var __oiq_pct = 50; if( __oiq_pct>=100 || Math.floor(Math.random()*100/(100-__oiq_pct)) > 0 ) { var _oiqq = _oiqq || []; _oiqq.push(['oiq_addPageBrand','Lycos']); _oiqq.push(['oiq_addPageCat','Internet > Websites']); _oiqq.push(['oiq_addPageLifecycle','Intend']); _oiqq.push(['oiq_doTag']); (function() { var oiq = document.createElement('script'); oiq.type = 'text/javascript'; oiq.async = true; oiq.src = document.location.protocol + '//px.owneriq.net/stas/s/lycosn.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(oiq, s); })(); } /////// Google Analytics var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-21402695-21']); _gaq.push(['_setDomainName', 'angelfire.com']); _gaq.push(['_setCustomVar', 1, 'member_name', 'dragon/shadowrider', 3]); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); ////// Lycos Initialization ///////////////////// var lycos_ad = Array(); var lycos_search_query = ""; var lycos_onload_timer; var cm_role = "live"; var cm_host = "angelfire.lycos.com"; var cm_taxid = "/memberembedded"; var angelfire_member_name = "dragon/shadowrider"; var angelfire_member_page = "dragon/shadowrider/index.html"; var angelfire_ratings_hash = "1713295371:33940648e106510a389ac1db2db381e2"; var lycos_ad_category = null; var lycos_ad_remote_addr = "209.202.244.9"; var lycos_ad_www_server = "www.angelfire.lycos.com"; var edit_site_url = "www.angelfire.lycos.com/landing/landing.tmpl?utm_source=house&utm_medium=landingpage&utm_campaign=toolbarlink"; </script> <script type="text/javascript" src="https://scripts.lycos.com/catman/init.js"></script> <script type='text/javascript'> var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; (function() { var gads = document.createElement('script'); gads.async = true; gads.type = 'text/javascript'; var useSSL = 'https:' == document.location.protocol; gads.src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js'; var node = document.getElementsByTagName('script')[0]; node.parentNode.insertBefore(gads, node); })(); </script> <script type='text/javascript'> googletag.cmd.push(function() { googletag.defineSlot('/95963596/ANG_300x250_dfp', [300, 250], 'div-gpt-ad-1450207484070-0').addService(googletag.pubads()); googletag.enableServices(); }); </script> <script type='text/javascript'> googletag.cmd.push(function() { googletag.defineSlot('/95963596/ANG_above_728x90_dfp', [728, 90], 'div-gpt-ad-1450207484070-1').addService(googletag.pubads()); googletag.enableServices(); }); </script> <script type='text/javascript'> googletag.cmd.push(function() { googletag.defineSlot('/95963596/ANG_below_728X90_dfp', [728, 90], 'div-gpt-ad-1450207484070-2').addService(googletag.pubads()); googletag.enableServices(); }); </script> <script type="text/javascript"> (function(isV) { if (!isV) { return; } //this.lycos_search_query = lycos_get_search_referrer(); var adMgr = new AdManager(); var lycos_prod_set = adMgr.chooseProductSet(); var slots = ["leaderboard", "leaderboard2", "toolbar_image", "toolbar_text", "smallbox", "top_promo", "footer2","slider"]; var adCat = this.lycos_ad_category; adMgr.setForcedParam('page', (adCat && adCat.dmoz) ? adCat.dmoz : 'member'); if (this.lycos_search_query) { adMgr.setForcedParam("keyword", this.lycos_search_query); } else if (adCat && adCat.find_what) { adMgr.setForcedParam('keyword', adCat.find_what); } for (var s in slots) { var slot = slots[s]; if (adMgr.isSlotAvailable(slot)) { this.lycos_ad[slot] = adMgr.getSlot(slot); } } adMgr.renderHeader(); adMgr.renderFooter(); }((function() { var w = 0, h = 0, minimumThreshold = 300; if (top == self) { return true; } if (typeof(window.innerWidth) == 'number' ) { w = window.innerWidth; h = window.innerHeight; } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { w = document.documentElement.clientWidth; h = document.documentElement.clientHeight; } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { w = document.body.clientWidth; h = document.body.clientHeight; } return ((w > minimumThreshold) && (h > minimumThreshold)); }()))); window.onload = function() { var f = document.getElementById("lycosFooterAd"); var b = document.getElementsByTagName("body")[0]; b.appendChild(f); f.style.display = "block"; document.getElementById('lycosFooterAdiFrame').src = '/adm/ad/footerAd.iframe.html'; // Slider Injection (function() { var e = document.createElement('iframe'); e.style.border = '0'; e.style.margin = 0; e.style.display = 'block'; e.style.cssFloat = 'right'; e.style.height = '254px'; e.style.overflow = 'hidden'; e.style.padding = 0; e.style.width = '300px'; })(); // Bottom Ad Injection ( function() { var b = document.getElementsByTagName("body")[0]; var iif = document.createElement('iframe'); iif.style.border = '0'; iif.style.margin = 0; iif.style.display = 'block'; iif.style.cssFloat = 'right'; iif.style.height = '254px'; iif.style.overflow = 'hidden'; iif.style.padding = 0; iif.style.width = '300px'; iif.src = '/adm/ad/injectAd.iframe.html'; var cdiv = document.createElement('div'); cdiv.style = "width:300px;margin:10px auto;"; cdiv.appendChild( iif ); if( b ) { b.insertBefore(cdiv, b.lastChild); } })(); } </script> <style> #body .adCenterClass { margin:0 auto; display:block !important; overflow:hidden; width:100%; } #body .adCenterClass #ad_container { display:block !important; float:left; width:728px; } @media (min-width: 768px) { <!-- For 300px or less ads ONLY --> #body .adCenterClass #ad_container { width: calc(100% - 372px); } } @media (min-width: 1110px) { <!-- For 728px or less ads --> #body .adCenterClass #ad_container { width: calc(100% - 372px); } } </style> <div style="background:#abe6f6; border-bottom:1px solid #507a87; position:relative; z-index:9999999"> <div class="adCenterClass"> <a href="https://www.angelfire.lycos.com/" title="Angelfire.com: build your free website today!" style="display:block; float:left; width:186px; border:0"> <img src="/adm/ad/angelfire-freeAd.jpg" alt="Site hosted by Angelfire.com: Build your free website today!" style="display:block; border:0" /> </a> <div id="ad_container"> <script type="text/javascript">document.write(lycos_ad['leaderboard']);</script> </div> </div> </div> <!-- ///////////////////////////////////// --> <script type="text/javascript">document.write(lycos_ad['slider']);</script> <div id="lycosFooterAd" style="background:#abe6f6; border-top:1px solid #507a87; clear:both; display:none; position:relative; z-index:9999999"> <div class="adCenterClass" style="display:block!important; overflow:hidden; width:936px;"> <div id="aflinksholder" style="float:left; width:186px;"> <a href="https://www.angelfire.lycos.com/" title="Angelfire.com: build your free website today!" style="display:block; border:0"> <img src="/adm/ad/angelfire-freeAd2.jpg" alt="Site hosted by Angelfire.com: Build your free website today!" style="display:block; border:0" /> </a> </div> <iframe id="lycosFooterAdiFrame" style="border:0; display:block; float:left; height:96px; overflow:hidden; padding:0; width:750px"></iframe> </div> </div> <!--- UNDERDOGMEDIA EDGE_lycos.com JavaScript ADCODE START---> <script data-cfasync="false" language="javascript" async src="//udmserve.net/udm/img.fetch?sid=17754;tid=1;dt=6;"></script> <!--- UNDERDOGMEDIA EDGE_lycos.com JavaScript ADCODE END---> </body>

Many of the hints and tips on this and other sites make use of the Command or DOS prompt. This is how computers used to work before the mouse became common. You have to type in your commands.

Throughout this page you will see this referred to as a DOS prompt. DOS Prompt and Command Prompt are the same thing.

You should have a DOS prompt open when reading this page so that you can try the commands. Unless stated, you will not damage your data by just moving around your folders.

The screenshot below shows a DOS prompt.

DOS Prompt

Opening a DOS Prompt

There are two ways to start a DOS prompt.

  1. Start, Programs, Accessories, Command prompt
  2. Start, Run and type "cmd" (minus quotes) and press enter.

There is a third way. Microsoft have a power toy available called DOS Here. This allows you to browse through your files and folders in the conventional way, then when you right click on a folder, you can open a new DOS prompt at that point. Download this power toy from Microsoft's web site.

DOS Basics

When you are working in DOS, there are a couple of things that usually work:

Many of the commands will have extra options available, known as switches. They are added to the command by entering a "/" then a letter, number or word. These can change how the tool works or handles the information. A common switch would be the help command, which will also give you information on the other switches available.

<command> /?
This would usually brings up information and about the command and the available switches. If it doesn't work, try "-?" after the command instead.

<command> > <filename>.txt
This will send the results of the command to a text file instead of the screen. You can include switches as well. This is particularly useful if you are looking at the help information for a command. Look at this example command:

 xcopy /? >c:\xcopy.txt

This writes the content of the help command to a file called xcopy.txt located in the root of the C:\ drive.

CLS
If you have lots of text in your DOS window, this command will clear it.

DOS Commands

There are two commands you will use most

  1. "CD" (change directory) (minus quotes). This changes directory relevant to the one you are currently working in.
  2. "DIR" (directory) (minus quotes). This lists the files and directories in the folder that you are in.

DIR

The "Dir" command is probably the most basic command. It gives you a listing of all the files and folders that are located in the folder that you are currently open in.
For example, in the screenshot above, we are in the root of the C:\ drive. If a DIR command is carried out at this point, then you will get a result similar to this:

 Volume in drive C is System
 Volume Serial Number is 144A-2C9A

 Directory of C:\

 25/10/2002 23:42 0 AUTOEXEC.BAT
 26/10/2002 01:03 0 COMLOG.txt
 25/10/2002 23:42 0 CONFIG.SYS
 06/02/2003 15:08 0 dir.txt
 04/11/2002 20:40 262,144 ntuser.dat
 25/10/2002 23:49 <DIR> Documents and Settings
 27/01/2003 19:58 <DIR> Program Files
 27/01/2003 09:26 <DIR> WINDOWS
 5 File(s) 262,144 bytes
 3 Dir(s) 12,528,111,616 bytes free

Advanced "dir" commands

You can get a little more advanced with the dir command by putting extra commands after the intitial "dir".
For example:

 dir /s

will show the contents of the current folder, and any subfolders that are below. This will produce a very long file listing. You might want to filter the results or send them to a text file (see above).

 dir /s something.doc

This command will search through all subdirectories below for a file that matches that file name. Similarly, issuing the command

 dir /s *.doc

will list all files that end in .doc (Word files).


CD

The CD command is very simple to use. All commands are relative to the directory that you are in. Therefore, using the example output of a "dir" that is shown above, if you want to change to the "Windows" directory, you would type

 CD Windows

If you want to change to the "system" directory (which is a sub directory of "windows"), you would enter

 CD System

However if you knew that you wanted to change to the system directory immediately, you could type this command instead:

 CD Windows\System

Moving Back Up

You can also move back up the tree, instead of down it.

If you want to just return to the root of the drive (C:\) you would just type

 cd \  or cd\

If you wanted to just go back one level (to use the earlier example, you were in c:\windows\system and you wanted to be in c:\windows) you would just type:

 cd..

Alternatively, if you want to access a totally different directory, for example "Program Files" you could type

 cd \program files or cd \"program files"

When typing directories to change to, if the directory name is unique, then you can use wild cards. For example

 cd \program*

Directory Entry Shortcut: : If you are on Windows 2000 or XP and you have a Windows Explorer screen open at the location that you want to run a DOS command you could open the DOS prompt and typing a long series of directories or CD commands. Instead, just type CD and then a space, then drag and drop the directory you want to work in to the DOS window. The full path to the directory will be entered, ready for you to press enter.


More Commands

File Renaming

You can rename files in a DOS prompt.

 rename something.txt someone.txt

would rename the file something.txt to someone.txt

Directory Creation

You can create directories from the command prompt:

 mkdir something

would create a directory called "something".
If you want a directory with a name that has a space in it, such as "My Files" you need include the command in " ":

 mkdir "my files"

This ensures that the directory is created with the space. Without the space you will get a new directory called "my" and an error message.


Windows Power Toys

If you do a lot of work in the command prompt, then you might be interested in installing the "Dos Here" (Windows 9x, NT and 2000) or "Command Here" (Windows XP) Power Toys. These add a new command the right click menu you get when you click on a directory allowing you to open a Command Prompt in that directory. 

You can download these Power Toys from Microsoft's web site.


Keyboard Short Cuts

There are a couple of shortcuts that you can use from the keyboard instead of typing full directory paths.

Use a Wild Card

If the directory you are wanting to change to is very long but uniquely named, then you can use a wild card instead of typing the entire thing.

For example, instead of:

cd "program files"

you could enter

cd prog*

Enter the wildcard character once you have typed enough characters for Windows to only have one choice.

Using "Tab" to Select Files or Folders - Windows XP/Server 2003 only

Another neat trick if you are using a command prompt on Windows XP or Windows Server 2003 and is to use the "Tab" key to scroll through the files and folders in the current directory. Type the command you want to use as normal, for example "cd" then press tab to cycle through the files and folders until you reach the one you want. Then press enter. You may still have to enter the " as before, so would type " cd " " then press tab until you reached the folder you want to change to, enter the second " to finish off and press enter.
This technique can save a lot of time if you need to change to a directory with a long name.

Repeat a Command

If you want to repeat a command that you have just run, or adjust something in the last command, press the "Up" cursor key to bring it back. You can then adjust it and press enter. Useful if you are trying to work out what switches and options you can use to achieve a certain result.


Full Command Listing

If you want a full list of the commands available to you, just type "help" and they will be listed. You can then type "help <command>" for the instructions.


Deleting Files

Finally - remember that if you delete a file within a DOS session it does not go in to the recycle bin. It will be deleted immediately.