On this page... (hide)
In MS Windows,
cmd.exe is the primary shell access.
Five Windows command prompt tips every IT pro should know - tips, shortcuts, etc. some batchfiles
From a LockerGnome article
- If you frequently open a command-line window by typing “cmd” at the Run prompt, you may not be happy with the default directory Windows picks.
- Change it by using RegEdit to open
- Make a new String Value and call it
AutoRun. The value should be set to
CD /D C:\
- Note, always make a backup of your registry before you modify it! (okay, so I hardly ever do this in practice)
I haven’t had any luck getting prompt-changes to persist. But I can use the above technique with the setting
prompt $G and have a nice, tidy little prompt.
No idea if you can set the AutoRun to multiple lines....
CMD /? for several pages of info
- Pressing arrow up selects a previous command from your command history; similarly, arrow down selects the next command.
- Pressing F7 pops up your command history list.
- You can drag n’ drop files or folders from an explorer window into a command prompt; this inserts the quoted path as if you had manually pasted it.
- Tab completion is fully supported; type
edit *.inithen hit TAB to iterate through all matches. Use SHIFT+TAB to move to the previous match. This works for partial filenames as you would expect, and in all commands.
Ctrl-c to exit data entry/script-running/etc.
cls is windows clear