Shortcuts for command prompt:
UP/DOWN ARROWS Recall commands
ESC Clears command line
F7 Displays command history
ALT+F7 Clears command history
F8 Searches command history
F9 Selects a command by number
ALT+F10 Clears macro definitions
`doskey'
Description:
Edits command lines, recalls Windows commands, and creates macros.
Example Usage:
Lists all commands stored in history:
HOLYBITCH# doskey /history
> doskey /history
> sh
Sets a macro:
HOLYBITCH# doskey su=runas /user:administrator cmd
DOSKEY Examples
`ntsd'
Description:
`ntsd' (New Technology Symbolic Debugger) is a console based symbolic
debugger that enables you to debug user-mode applications/services.
Example Usage:
Attaches debugger to a specified pid:
HOLYBITCH# ntsd -p $pid
Kills a certain process:
HOLYBITCH# ntsd -p $pid -c q
Windoze 2k and higher Windoze versions generelly have installed `ntsd' on the system. Using `ntsd -p $pid -c q' to attach to a certain application and quitting the debugger with 'q' is a nice process killing trick for "unkillble processes" on Windoze 2k and higher because the task manager does not enable the SeDebugPrivilege for killing processes (except for Windoze XP SP2).
`systeminfo'
Description:
This tool displays operating system configuration information for
a local or remote machine, including service pack levels.
Example Usage:
HOLYBITCH# systeminfo | grep -i minute
> Systembetriebszeit: 2 Days, 2 Hours, 58 Minutes, 34 Seconds
HOLYBITCH# systeminfo | grep -i hotfix
> Hotfix(es): 80 Hotfix(e) installed.
This command is available in Windoze XP Pro and Windoze 03 Server only.
Shameless stolen from
fox' weblog: Uptime for Windows XP :oP.
np: Blank & Jones - Desire