re: Question about 'Load DosKey in a DOS box automatically'
Sunday, January 29, 2006 at 8:58 pm Windows XP Annoyances Discussion Forum
Posted by Rich Camlin
(19 messages posted)
Ken,
Your solution was outstanding and extremely well presented.
Thank you for solving a problem that has been nagging me for over a year
rc
On Tuesday, April 8, 2003 at 10:42 pm, KenAlcock wrote:
>
>As I understand this thread, you want control over how the Command
>Prompt initially opens. (Get used to “Command Prompt” or Command
>Line,” because it’s no longer a DOS prompt in Windows NT/2000/XP.)
>
>This is intended for Windows XP. I believe it will work on NT and
>2000; but, I’m not so sure about DOS based Windows versions 3.x - ME).
>I extensively use Command Line in my work. Here’s what I use to make
>my life easier. Everything you see here should be part of the basic
>Windows XP installation.
>
>1. Find the Command Prompt icon, usually located in:
> Start Menu -> Programs -> Accessories -> Command Prompt
>
>2. Right-click this icon and select [Properties].
>
>3. On the [Shortcut] tab make the following changes:
>
>[Target:]
> %SystemRoot%\system32\cmd.exe /k %SystemRoot%\system32\autoexec.bat
>
> The /K switch carries out any command specified by the following
> {path string} and forces cmd.exe to remain open after the command
> completes.
>
> You don’t actually have a file: “%SystemRoot%\system32\autoexec.bat.”
> We’ll make it in a moment. I strongly suggest you make this file,
> rather than use the one located at C:\.
>
>[Shortcut Key:] Ctrl+Shift+C
> This saves a lot of time; now we don’t have to hunt our icon each
> Time we open a Command Line.
>
>[Start in:] {Where ever your heart desires}
> ALL your Commands lines will open here; C:\ works fine for me. You
> can also use environmental variables like %SystemRoot% in this blank.
> If you change this directory, make sure your %PATH% is updated so you
> can find any command line programs you wish to make use of.
>
>[Run:] Normal Window
> This should be the default value.
>
>4. On the [Options] tab make the following changes:
>
>[Command History]
>
> [Buffer Size] 50
> This affects how many commands each Command Line buffer stores.
>
> [Number of Buffers] 4
> This affects how many Command Lines, open at the same time, can
> have their own command history buffer.
>
> [Discard Duplicates] OFF
> You can turn this on, but it may be somewhat confusing to locate
> commands you just ran a second ago, if you first ran the same
> command a half hour ago. Only the FIRST instance of any command
> (as typed) is stored with this option on. So this setting slightly
> changes the overall order of all commands in the history buffer.
>
>[Edit Options]
>
> [Quick Edit Mode] On
> This allows you to mouse click directly in the Command Line, and
> Paste Windows clipboard text to it.
>
> [Insert Mode] On
> This allows you to click in the middle of a typed command string
> and type new characters, inserting them without overstriking any
> existing ones. This is a default setting for the Command Line
> when it first opens. (You can toggle Insert and Overstrike mode
> with the Insert key.)
>
>4. After making your changes, click [Apply], then click [OK].
>
> Now ALL Command Line Prompts opened from this icon (or by pressing
> Ctrl+Shift+C) will inherit these settings. However, if you open a
> command line from Start Menu -> Run, or any different icon, these
> settings won’t take effect.
>
>5. Create an Autoexec.bat file to initialize your Command Line Prompt
> run from your modified icon (or by pressing Ctrl+Shift+C).
>
>A. Click on Start Menu -> Run
>B. Copy and paste the following line:
> Notepad %SystemRoot%\system32\Autoexec.bat
>C. Press Enter.
>D. Click [Yes] to create a new file.
>E. Copy and paste the example Autoexec.bat shown below
>
>:: Start example Autoexec.bat to initialize a new Command Line.
> @Echo Off
> CLS
>:SetVars
> SET Greeting=It Works!
>:Start
> Echo.
> Echo %Greeting%
> Echo.
> @Echo On
>:End
>:: End example Autoexec.bat file.
>
>F. Save the file and exit Notepad.
>
>6. Press Ctrl+Shift+C to test your work.
>
>Now all you have to do is modify this Autoexec.bat with any settings
>You want to include. (Here’s another tip, create a shortcut to this
>file and put it next to your Command Prompt icon in the Start Menu.)
>
>DS
>
|
All messages in this thread [show all]
 |  |  |  |  | re: Question about 'Load DosKey in a DOS box automatically' (Rich Camlin: Sun, Jan 29, 2006, 8:58 pm) |
| |
| |
Return to the Windows XP Discussion Forum
|
|