View source for Working with the Windows Command Prompt - EDukeWiki

# View source for Working with the Windows Command Prompt

← Working with the Windows Command Prompt

You do not have permission to edit this page, for the following reasons:

- The action you have requested is limited to users in the group: Users.
- You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page.

==Opening A Command Prompt Window== There is a convenient way to open command prompt windows by right-clicking on any folder and selecting the relevant menu choice. ===Windows Vista, 7, and higher=== Hold '''Shift''' when you right-click on a folder and the option to open a command prompt window will appear. ===Windows XP and lower=== This registry patch will add a right-click option: [[File:cmdhere.zip]] ==Expand the Screen Buffer== # Open a command prompt. # Right-click on the title bar. # Select '''Properties'''. # Navigate to the '''Layout''' tab. # Increase the Screen Buffer dimensions as desired. [[File:Win7 cmd Layout.png]] ==How to Copy and Paste Text== Source: [http://www.tech-recipes.com/rx/249/cmd-copypaste-between-window-and-command-consoledos-program/] ===Enabling QuickEdit Mode=== To copy and paste text easily in the command prompt, first we must enable QuickEdit mode: # Open a command prompt. # Right-click on the title bar. # Select '''Properties'''. # Make sure the '''QuickEdit Mode''' checkbox is checked. # Click '''OK'''. ## If you are presented with an option, select '''Save Properties for future windows with same title''' if you want to keep this change forever, or select '''Apply Properties for current window only''' if you only want to enable QuickEdit for this session. ## Click '''OK'''. [[File:Win7 cmd Options.png]] Once you have QuickEdit Mode enabled, the process is simple: ===Copying=== # Click and drag to highlight the desired text in the console. # Press '''Enter''' in the console to copy this text into the clipboard. ===Pasting=== # Copy the desired text into the clipboard at its source. # Right-click into the console to paste the text. == Configuring PATH == '''PATH''' is an [[Wikipedia:environment variable|environment variable]] that holds a list of directories in which the command prompt will search for exe files when a command is issued. For example, <code>C:\Windows\system32\</code> is part of PATH by default, which allows you to type <code>cmd</code> instead of <code>C:\Windows\System32\cmd.exe</code> === Persistent === Open the Properties dialog of ''Computer'' or ''This PC'' (by right-clicking and selecting "Properties", or by holding ALT and double-clicking), select "Advanced system settings" in the top-left, and navigate to the ''Advanced'' tab. Alternatively, press '''[WinKey]+[R]''' and issue the command <code>control sysdm.cpl,,3</code>. Once on the ''Advanced'' tab, press the ''Environment Variables...'' button. [[File:Win7 System Properties.png]] [[File:Win7 Environment Variables.png]] From there you can edit the variable named Path (either system-wide, or limited to your user account). It is formatted as a semicolon-delimited string of text. For example, <code>C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\</code>, etc. The closer a path to the start of the list, the higher its precedence. === Temporary === If you would like to adjust the PATH of just the current command prompt window, you can run this command: set PATH=C:\Path\To\Folder;%PATH% If you find yourself often making the same temporary PATH changes, you may want to save their command invocations in a batch file that is itself located within persistent PATH.

Return to Working with the Windows Command Prompt.

Retrieved from "http://wiki.eduke32.com/wiki/Working_with_the_Windows_Command_Prompt"