<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://etcwiki.org/index.php?action=history&amp;feed=atom&amp;title=Windows_Command_Line%3A_Beginners_Guide</id>
	<title>Windows Command Line: Beginners Guide - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://etcwiki.org/index.php?action=history&amp;feed=atom&amp;title=Windows_Command_Line%3A_Beginners_Guide"/>
	<link rel="alternate" type="text/html" href="http://etcwiki.org/index.php?title=Windows_Command_Line:_Beginners_Guide&amp;action=history"/>
	<updated>2026-05-12T22:27:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://etcwiki.org/index.php?title=Windows_Command_Line:_Beginners_Guide&amp;diff=3715&amp;oldid=prev</id>
		<title>Ddxfish at 16:13, 25 July 2015</title>
		<link rel="alternate" type="text/html" href="http://etcwiki.org/index.php?title=Windows_Command_Line:_Beginners_Guide&amp;diff=3715&amp;oldid=prev"/>
		<updated>2015-07-25T16:13:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:13, 25 July 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Windows Command Line ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Windows Command Line ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A simple guide for any skill level.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A simple guide for any skill level.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Windows Command Line DOS]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:windows-command-line.jpg|right|thumb]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:windows-command-line.jpg|right|thumb]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot;&gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Through this guide, we will walk through each section of commands that Windows XP Command line offers you the capability of. At the end, we discuss how scripting, and batch files can automate tasks, and save you time.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Through this guide, we will walk through each section of commands that Windows XP Command line offers you the capability of. At the end, we discuss how scripting, and batch files can automate tasks, and save you time.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Microsoft Windows]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Terms:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Terms:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ddxfish</name></author>
	</entry>
	<entry>
		<id>http://etcwiki.org/index.php?title=Windows_Command_Line:_Beginners_Guide&amp;diff=3714&amp;oldid=prev</id>
		<title>Ddxfish at 16:13, 25 July 2015</title>
		<link rel="alternate" type="text/html" href="http://etcwiki.org/index.php?title=Windows_Command_Line:_Beginners_Guide&amp;diff=3714&amp;oldid=prev"/>
		<updated>2015-07-25T16:13:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:13, 25 July 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l361&quot;&gt;Line 361:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 361:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== More Resources: ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== More Resources: ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*&lt;/ins&gt;[http://technet.microsoft.com/en-us/library/bb491071.aspx Official Microsoft Command Line Reference&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[&lt;/del&gt;[http://technet.microsoft.com/en-us/library/bb491071.aspx&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|&lt;/del&gt;Official Microsoft Command Line Reference]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Software&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ddxfish</name></author>
	</entry>
	<entry>
		<id>http://etcwiki.org/index.php?title=Windows_Command_Line:_Beginners_Guide&amp;diff=1825&amp;oldid=prev</id>
		<title>Ddxfish: /* Processes and Performance */</title>
		<link rel="alternate" type="text/html" href="http://etcwiki.org/index.php?title=Windows_Command_Line:_Beginners_Guide&amp;diff=1825&amp;oldid=prev"/>
		<updated>2009-05-08T01:07:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Processes and Performance&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Windows Command Line ===&lt;br /&gt;
A simple guide for any skill level. &lt;br /&gt;
[[Category:Windows Command Line DOS]]&lt;br /&gt;
&lt;br /&gt;
[[Image:windows-command-line.jpg|right|thumb]]&lt;br /&gt;
Windows Command Line, known as a Command Line Interface, can be a very powerful tool for system administrators, power users, and technical support personnel. While most users will never see Windows Command Line, this guide is intended for Intermediate to Advanced users.&lt;br /&gt;
&lt;br /&gt;
Most of Windows Command Line functions can be accessed through Windows GUI, other functions and programs can not. Knowing and understanding Windows Command Line will allow you to complete tasks faster, access features and programs not available in the Windows GUI, and look like you know what you&amp;#039;re doing.&lt;br /&gt;
&lt;br /&gt;
Through this guide, we will walk through each section of commands that Windows XP Command line offers you the capability of. At the end, we discuss how scripting, and batch files can automate tasks, and save you time.&lt;br /&gt;
[[Category:Microsoft Windows]]&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
CLI - Command Line Interface (non-GUI)&lt;br /&gt;
WCL - Windows Command Line&lt;br /&gt;
GUI - Graphical User Interface&lt;br /&gt;
Script - Chain of commands to be automatically run in order&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Navigating Windows Command Line ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:windows-command-line-run.jpg]]&lt;br /&gt;
To open Windows Command Line, click Start &amp;gt; Run and enter the word &amp;quot;cmd&amp;quot;. This is a shortcut to opening a historic file called command.com, which is now called cmd.exe  (the main program running WCL). The files for WCL can be found in &amp;quot;%systemroot%\system32&amp;quot;. Whenever you see a value starting and ending with %, you will know this is a variable. The %systemroot% variable will have a value of whatever your main windows folder is. For Windows XP, your system root is C:\Windows\, unless specified otherwise. For Windows 2000, your system root is C:\Winnt.&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
Variable - A value that can change based on user input&lt;br /&gt;
Syntax - The way a command is typed (word order)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigating the Command Line Interface: Commands and Examples&lt;br /&gt;
&lt;br /&gt;
Each command in Windows Command Line has a different function. Each command also has a help document associated with it (for the most part). To access help for any command, try these two methods:&lt;br /&gt;
&lt;br /&gt;
Windows Command Line Help &lt;br /&gt;
(command) /? - This /? at the end of the command will bring up a help document describing different &amp;quot;modifiers&amp;quot; you can add to command using the / symbol.&lt;br /&gt;
&lt;br /&gt;
[[Image:windows-command-line-help.jpg|windows xp cli]]&lt;br /&gt;
&lt;br /&gt;
If you dont get a help document from the first command, check your syntax, and try the other help command.&lt;br /&gt;
&lt;br /&gt;
HELP - Help document for WCL&lt;br /&gt;
Usage: help OR help &amp;lt;command&amp;gt;&lt;br /&gt;
Example: help&lt;br /&gt;
Example: help copy&lt;br /&gt;
Explanation: Help lists commands, help &amp;lt;command&amp;gt; shows command help document&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Windows Command Line Commands ==&lt;br /&gt;
Listed below are some commonly used Windows Command Line Commands. They show the command name, its description, usage, and an explanation of what the example command would do.&lt;br /&gt;
&lt;br /&gt;
CD - Change current working directory&lt;br /&gt;
Usage: cd &amp;lt;directory you want to open&amp;gt; OR cd\&lt;br /&gt;
Example: cd\&lt;br /&gt;
Explanation: Changes your working directory to root (c:\)&lt;br /&gt;
Example: cd windows&lt;br /&gt;
Explanation: Takes you to the windows directory inside your current directory&lt;br /&gt;
&lt;br /&gt;
COPY - copies files or folders to other locations that already exist&lt;br /&gt;
Usage: copy &amp;lt;file or folder from&amp;gt; &amp;lt;copy file or folder to&amp;gt;&lt;br /&gt;
Example: copy employees.txt c:\work\employees\&lt;br /&gt;
&lt;br /&gt;
CLS - Clears the screen of all commands&lt;br /&gt;
Usage: cls&lt;br /&gt;
Example: cls&lt;br /&gt;
&lt;br /&gt;
DEL - Deletes a file from current directory&lt;br /&gt;
Usage: del &amp;lt;folder or file name&amp;gt;&lt;br /&gt;
Example: del programs&lt;br /&gt;
Explanation: Deletes the folder or file named programs&lt;br /&gt;
&lt;br /&gt;
DIR - Used to list all files in current directory&lt;br /&gt;
Usage: dir (modifiers can be listed with /?)&lt;br /&gt;
Example: dir&lt;br /&gt;
Explanation: This will list all files and folders at current location&lt;br /&gt;
&lt;br /&gt;
EXIT - Exits CMD&lt;br /&gt;
Usage: exit&lt;br /&gt;
&lt;br /&gt;
FIND - Finds a command given certain search parameters&lt;br /&gt;
Usage: Find &amp;lt;search term&amp;gt;&lt;br /&gt;
Example: Find &amp;quot;*.txt&amp;quot;&lt;br /&gt;
Explanation: Finds all text files in directory&lt;br /&gt;
Notes: * can be used as a &amp;#039;wildcard&amp;#039; to mean any length or any combination of letters.&lt;br /&gt;
&lt;br /&gt;
MD - Make directory at current location&lt;br /&gt;
Usage: md &amp;lt;directory name you want to make&amp;gt;&lt;br /&gt;
Example: md programs&lt;br /&gt;
Explanation: This will make a new folder at the current location&lt;br /&gt;
&lt;br /&gt;
MOVE - Moves a file from one location to another (cut)&lt;br /&gt;
Usage: Move &amp;lt;full path of file you want to move&amp;gt; &amp;lt;already existing directory to move TO&amp;gt;&lt;br /&gt;
Example: Move c:\games\mygame.zip c:\newgames\&lt;br /&gt;
Explanation: This will move the file mygame.zip from one directory, to another existing directory&lt;br /&gt;
&lt;br /&gt;
PAUSE - Pauses scripts or batch files and waits for user input&lt;br /&gt;
example: pause&lt;br /&gt;
Explanation: When in a script, this displays &amp;quot;Press any key to continue&amp;quot; and waits for user input&lt;br /&gt;
&lt;br /&gt;
RD - Remove Directory&lt;br /&gt;
Usage - rd &amp;lt;folder name&amp;gt;&lt;br /&gt;
Example: rd windows&lt;br /&gt;
Explanation: This removes the directory Windows (bad idea)&lt;br /&gt;
Notes: to remove a directory and its contents, &amp;quot;rd /s windows&amp;quot;&lt;br /&gt;
&lt;br /&gt;
REN - Rename a folder or file&lt;br /&gt;
Usage: ren &amp;lt;file or folder&amp;gt; &amp;lt;new name you want&amp;gt;&lt;br /&gt;
Example: ren windows window&lt;br /&gt;
Explanation: this changes your windows directory name to window&lt;br /&gt;
&lt;br /&gt;
TIME - Check or modify system time&lt;br /&gt;
Usage: time&lt;br /&gt;
&lt;br /&gt;
VER - Check your version of Windows&lt;br /&gt;
Usage: ver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Windows Command Line also interfaces with files on your computer to record data to. Piping and chaining commands is another option in most CLI situations. Chaining commands is simply feeding the output of one command (dir for example outputs a list of files and folders) to another command that you want to run only for the output of the first file.&lt;br /&gt;
&lt;br /&gt;
== Piping Commands ==&lt;br /&gt;
&lt;br /&gt;
The chaining of commands can be used by typing | (shift + \). This is called the pipe, or piping commands. To pipe one command to another, type one full command, and WCL automatically outputs the data that you normally see to the next command.&lt;br /&gt;
&lt;br /&gt;
For example, &amp;quot;dir c:\windows\ | Find &amp;quot;*.txt&amp;quot;&lt;br /&gt;
The above example would list all files in c:\windows\ then put all of the files and folders in c:\windows\ get sent to the find command. The find command then looks for any files that end in .txt. You will now see a list of all txt files in c:\windows\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Output to a text file ==&lt;br /&gt;
&lt;br /&gt;
Another useful function for script makers is the ability to output text from the command line (input and output) to a text document. Using the output to text file, or append options both come in handy at different times.&lt;br /&gt;
&lt;br /&gt;
&amp;gt; - Create a new text file and have WCL output info to it&lt;br /&gt;
Usage: &amp;lt;command to output&amp;gt; &amp;gt; &amp;lt;location of text file to output to&amp;gt;&lt;br /&gt;
Example: dir &amp;gt; c:\myfiles.txt&lt;br /&gt;
Explanation: This command would list all files and folders in current directory, and outputs to file c:\myfiles.txt&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt; - Append information from a command to a text document.&lt;br /&gt;
Usage: &amp;lt;command&amp;gt; &amp;gt;&amp;gt; &amp;lt;file to add to&amp;gt;&lt;br /&gt;
Example: dir &amp;gt; c:\myfiles.txt&lt;br /&gt;
Explanation: This would list files and folders in current directory and ADD the list to myfiles.txt while keeping the previous data in tact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Chaining Commands ==&lt;br /&gt;
&lt;br /&gt;
When there are multiple commands you want to run at one time, Chaining commands in Windows Command Line comes in handy. To chain a command, we have two tools.&lt;br /&gt;
&lt;br /&gt;
&amp;amp; - Complete one command then another directly after&lt;br /&gt;
Usage: command &amp;amp; command2&lt;br /&gt;
Example: dir &amp;amp; ver&lt;br /&gt;
Explanation: This will list all files in current directory and then the version of Windows Command Line&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;&amp;amp; - Complete one command, then another if the first was successful&lt;br /&gt;
Usage: &amp;lt;command1&amp;gt; &amp;amp;&amp;amp; &amp;lt;command2&amp;gt;&lt;br /&gt;
Example: copy c:\importantdata.txt c:\backup\ &amp;amp;&amp;amp; ren backupdata.txt&lt;br /&gt;
Explanation: This will copy the file importantdata.txt to c:\backup\, THEN if successful, it will rename the file to backupdata.txt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Processes and Performance ==&lt;br /&gt;
&lt;br /&gt;
Windows has its GUI version of system performance monitor that shows up every time you press CTRL-ALT-DELETE at the same time. There is also a command line version that can be configured to show much more information for power users.&lt;br /&gt;
&lt;br /&gt;
Another thing to take into account is that when you open a CMD window, it will use a LOT less system resources than a GUI. This can be VERY helpful in ending processes that are lagging your computer a lot.&lt;br /&gt;
&lt;br /&gt;
To access the process and performance monitoring tools, use the following commands:&lt;br /&gt;
[[Image:windows-command-line-task.jpg|right|thumb|Tasklist in Windows Command Line (DOS)]]&lt;br /&gt;
TASKLIST - Lists all running processes with detailed information&lt;br /&gt;
Usage: Tasklist&lt;br /&gt;
Note: the /svc addition to tasklist allows you to see what processes are using what services at the moment&lt;br /&gt;
Note2: /M addition shows each process, and associated DLL files&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TASKKILL - Stops tasks with given parameters&lt;br /&gt;
Usage: Taskkill &amp;lt;which task&amp;gt;&lt;br /&gt;
Example: Taskkill /pid 140&lt;br /&gt;
Explanation: This will end the task with PID of 140 (the process identification number). You can find the PID for each task using tasklist&lt;br /&gt;
&lt;br /&gt;
== Controlling Windows Services in Command Line ==&lt;br /&gt;
&lt;br /&gt;
Services are extra functions that Windows has the ability to start and stop depending on whether you allow the services to be started. A lot of windows services contribute to slow computing, security risks, and instability in the operating system. While some services are essential, others are never needed. [[Windows XP Services]]&lt;br /&gt;
&lt;br /&gt;
To list, modify, start and stop services you will need a new commands to help you.&lt;br /&gt;
&lt;br /&gt;
SC query - Shows list of configured services&lt;br /&gt;
Usage: SC query&lt;br /&gt;
Explanation: This will list info and data on services&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SC qc - Queries a specific service&lt;br /&gt;
Usage: SC qc &amp;lt;service name&amp;gt;&lt;br /&gt;
Example: sc qc messenger&lt;br /&gt;
Explanation: This will show configuration data for the messenger service&lt;br /&gt;
&lt;br /&gt;
SC start - Starts a specific service&lt;br /&gt;
Usage: SC start &amp;lt;service name&amp;gt;&lt;br /&gt;
Example: SC start messenger&lt;br /&gt;
Explanation: This starts the messenger service&lt;br /&gt;
&lt;br /&gt;
SC stop - Stops a specific service&lt;br /&gt;
Usage: SC stop &amp;lt;service name&amp;gt;&lt;br /&gt;
Example: SC stop messenger&lt;br /&gt;
Explanation: This stops the messenger service&lt;br /&gt;
&lt;br /&gt;
SC config - Configures service properties&lt;br /&gt;
Usage: SC config &amp;lt;service name&amp;gt; start= &amp;lt;start type&amp;gt;&lt;br /&gt;
Example: SC config messenger start = disabled&lt;br /&gt;
Explanation: This will tell the messenger service NOT to start with the computer. &lt;br /&gt;
Notes: Settings available for start= are Disabled, Auto, and Demand&lt;br /&gt;
Disabled never starts, Auto starts every startup, and demand starts as the service is needed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Windows Hard Disk Utils ==&lt;br /&gt;
&lt;br /&gt;
Windows comes with extensive command line utilities to control, check and maintain your hard disk drives. Included in the utilities are Drive Partitioners, Defragmenters, Check Disk Utilities, and utilities to set a drive to be checked for errors on next startup.&lt;br /&gt;
&lt;br /&gt;
Try some of these Windows Command Line Commands, as they can save your computer in case of disasters like virus&amp;#039;s or improper shutdowns.&lt;br /&gt;
&lt;br /&gt;
CHKDSK - Checks a hard disk for errors&lt;br /&gt;
Usage: chkdsk &amp;lt;parameters&amp;gt; &amp;lt;drive to check&amp;gt;&lt;br /&gt;
Example: chkdsk /f C:&lt;br /&gt;
Explanation: This command will scan drive C for errors, and repair them if needed.&lt;br /&gt;
Notes: /f parameter auto-repairs errors when found&lt;br /&gt;
&lt;br /&gt;
DEFRAG - Defragments a hard drive to optimize performance&lt;br /&gt;
Usage: Defrag &amp;lt;parameter&amp;gt; &amp;lt;drive letter&amp;gt;&lt;br /&gt;
Example: Defrag c:\&lt;br /&gt;
Explanation: Desfragments the C: drive&lt;br /&gt;
Notes: defrag -a &amp;lt;drive letter&amp;gt; will analyze only, and not defragment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== User Control ==&lt;br /&gt;
&lt;br /&gt;
Embedded in Windows XP is the ability to add and remove users. This concept is called a &amp;quot;Multi-User Operating System&amp;quot;. This type of system allows for more than one user account to be made, each account with specific permissions to access data or run programs. User Accounts can be changed from control panel, or Windows Command Line.&lt;br /&gt;
&lt;br /&gt;
NET USER - View a list of local user accounts&lt;br /&gt;
Usage: Net User &amp;lt;name of user, or blank for all&amp;gt;&lt;br /&gt;
Example: Net User Chris&lt;br /&gt;
Explanation: Displays user account info for user Chris&lt;br /&gt;
Notes: Access to net user can be used across a single domain also&lt;br /&gt;
Parameters: net user &amp;lt;name&amp;gt; /delete&lt;br /&gt;
Explanation: This deletes a user account&lt;br /&gt;
&lt;br /&gt;
[[Image:windows-command-net-user.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NET USER - Adds users to local computer&lt;br /&gt;
Usage: net user &amp;lt;username to add&amp;gt; &amp;lt;password to add&amp;gt; /add&lt;br /&gt;
Example: net user chris library /add&lt;br /&gt;
Explanation: This will add a user to the local computer with the name as chris, and the password as library&lt;br /&gt;
Notes: Parameters that go BEFORE /add are &lt;br /&gt;
/fullname:&amp;quot;Chris Reed&amp;quot;    (Full name of user)&lt;br /&gt;
/comment:&amp;quot;Chris is main systems admin&amp;quot;   (users comments)&lt;br /&gt;
/passwordreq yes   (requires password at logon)&lt;br /&gt;
&lt;br /&gt;
Example 2: net user Chris library /fullname:&amp;quot;Chris Reed&amp;quot; /comment: &amp;quot;Chris is main systems admin&amp;quot; /passwordreq yes /add&lt;br /&gt;
Explanation: This adds user Chris with password library, and full user name of chris reed, with a user comment as &amp;quot;Chris is main systems admin&amp;quot; and requires a password at logon&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Managing TCP/IP and Networking with WCL ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TCP/IP is a transmission protocol for two computers communicating through a network. TCP/IP has error checking for the packets that are transferred, and is used in many internet and networking situations. &lt;br /&gt;
&lt;br /&gt;
Windows Command Line allows you to view detailed information about your internet connection, DNS servers, DHCP servers, your internal IP address, and defualt gateway. The commands below will show you how to check your TCP/IP status, modify servers, and set static IP addresses.&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
[code]DHCP - Automatically determined IP set for your computer&lt;br /&gt;
Static IP - A custom setup network configuration with unchanging IP&lt;br /&gt;
TCP/IP - Communication protocol for 2 computers over a network&lt;br /&gt;
Default Gateway - Your router or gateways IP address&lt;br /&gt;
Subnet Mask - Defines the section of a network you are on&lt;br /&gt;
DNS servers - Computer that resolves URL to IP (www.yoursite.com to IP)&lt;br /&gt;
IP address - Your individual computers network ID &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; To check your TCP/IP connections, network adapter, and settings, you can type ping &amp;quot;127.0.0.1&amp;quot;. This will send a ping out through your network adapter, and redirect it right back to your computer. Upon successful ping, you can tell that your computer is setup properly to use TCP/IP.&lt;br /&gt;
&lt;br /&gt;
== &lt;br /&gt;
TCP/IP from Windows Command Line ==&lt;br /&gt;
&lt;br /&gt;
IPCONFIG - Shows IP information for your computer&lt;br /&gt;
Usage: IPCONFIG or IPCONFIG /all&lt;br /&gt;
Example: ipconfig /all&lt;br /&gt;
Explanation: Shows all information about current TCP/IP connection&lt;br /&gt;
Notes: Other parameters /flushDNS (resets DNS cache) /release (releases your network adapter) /renew (renews your network adapter)&lt;br /&gt;
&lt;br /&gt;
[[Image:Windows-command-ipconfig.jpg|Windows-command-ipconfig.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SET ADDRESS - sets tcp/ip settings via WCL&lt;br /&gt;
Usage: Set address name=&amp;quot;&amp;lt;connection name&amp;gt;&amp;quot; source=&amp;lt;static or dhcp&amp;gt; addr=&amp;lt;static IP&amp;gt; mask=&amp;lt;subnet mask&amp;gt; gateway=&amp;lt;gateway IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Static IP Network Configuration&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
Example: Set address name=&amp;quot;Local Area Connection&amp;quot; source=static addr=192.168.1.201 mask=255.255.255.0 gateway=192.168.1.1&lt;br /&gt;
Explanation: This will make the computer setup a new connection called Local Area Connection, with a STATIC IP of 192.168.1.201, a subnet mask of 255.255.255.0 and a gateway of 192.168.1.1&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039; DHCP Network Configuration&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
Example: set address name=&amp;quot;Local Area Connection&amp;quot; source=&amp;quot;dhcp&amp;quot;&lt;br /&gt;
Explanation: This will setup a new connection name Local Area Connection that will try to automatically set your IP using DHCP protocol. (Your router or gateway will be the DHCP server usually)&lt;br /&gt;
&lt;br /&gt;
DELETE ADDRESS - Removes a connection from your list&lt;br /&gt;
Usage: Delete Address name=&amp;lt;address name&amp;gt; addr=&amp;lt;IP address&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039; DNS Server Setup&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
DNS servers are computers connected to the internet with records of URLs (www.yoursite.com) and the matching IP address for the URLs server (68.48.0.12). Your computer connects to a DNS server every time you enter a web page in your address bar. Although you dont usually see the IP address information, it is hiding beneath your browser or internet program. &lt;br /&gt;
&lt;br /&gt;
To setup custom DNS servers using WCL, you will need the following commands. For your DNS server, you can either contact your ISP, and use one of theirs, or you can try using your router. &lt;br /&gt;
&lt;br /&gt;
ADD DNS - Sets custom DNS servers to use&lt;br /&gt;
Usage: ADD DNS name=&amp;lt;DNS server name&amp;gt; addr=&amp;lt;ip of DNS server&amp;gt;&lt;br /&gt;
Example: ADD dns name=&amp;quot;My Pinacolataburg DNS&amp;quot; addr=&amp;quot;68.48.0.12&amp;quot;&lt;br /&gt;
Explanation: Adds a DNS server named My Pinacolataburg DNS with an IP address of 68.48.0.12&lt;br /&gt;
&lt;br /&gt;
DELETE DNS - removes a specific DNS entry from a connection&lt;br /&gt;
Usage: delete dns name=&amp;lt;name to delete&amp;gt; addr=&amp;lt;IP to delete&amp;gt;&lt;br /&gt;
Example: delete dns name=&amp;quot;My Pinacolataburg dns&amp;quot; addr=68.48.0.12&lt;br /&gt;
Explanation: This will remove the DNS server entry above&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Windows Command Line has an array of tools for diagnosing network problems. You can view individual stats for network adapters and network connections. You can also view the path to a certain internet host, get ping information for the host, and find all open TCP/IP connections with information on what program is using the connection.&lt;br /&gt;
&lt;br /&gt;
Tracert - Find ping, and number of hops to reach a given server&lt;br /&gt;
Usage: Tracert &amp;lt;internet host to trace the route to&amp;gt;&lt;br /&gt;
Example: tracert www.computershack.net&lt;br /&gt;
Explanation: This command would give tracert information from the originating computer, to the opposite end of the connection. &lt;br /&gt;
&lt;br /&gt;
PING - Find how long it takes for a message to be send to a server, and back again.&lt;br /&gt;
Usage: Ping &amp;lt; internet host IP or URL &amp;gt;&lt;br /&gt;
Example: ping www.computershack.net&lt;br /&gt;
Explanation: Ping shows the time, in milliseconds it takes to contact the given IP or URL, plus the time it takes to get back to your computer.&lt;br /&gt;
&lt;br /&gt;
NETSTAT - Shows information about network connections&lt;br /&gt;
Usage: Netstat &amp;lt;parameters&amp;gt;&lt;br /&gt;
Example: Netstat -b&lt;br /&gt;
Explanation: With the parameter -b, netstat shows a list of all open connections, the port, and program that is managing the connection.&lt;br /&gt;
Notes: Another parameter is -a to view all open connections/ports&lt;br /&gt;
&lt;br /&gt;
[[Image:windows-command-netstat.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NETSH - Network Shell is a collection of tools to diagnose network components.&lt;br /&gt;
Usage: NETSH &amp;lt;parameter&amp;gt;&lt;br /&gt;
Example: NETSH diag ping adapter&lt;br /&gt;
Explanation: This will ping each item in your TCP/IP configuration. Included is DNS, DHCP, WINS, and Default Gateway&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Conclusion: Using the information in this document, it is possible to control, maintain, diagnose, and fix problems in almost all categories. With this information, try using Windows Command Line more often. It will help you become a better technician, and be able to fix more problems faster.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== More Resources: ==&lt;br /&gt;
&lt;br /&gt;
[[http://technet.microsoft.com/en-us/library/bb491071.aspx|Official Microsoft Command Line Reference]]&lt;/div&gt;</summary>
		<author><name>Ddxfish</name></author>
	</entry>
</feed>