We1rdCmd's blog

Command Prompt Tricks, Hacks, and Secrets in Windows 7, Vista, and XP by We1rdCmd

1. Use Ctrl-C to Abort a Command

Just about any command can be stopped in its tracks with the abort command: Ctrl-C.

If you haven't actually executed a command, you can just backspace and erase what you've typed, but if you've already executed it then you can do a Ctrl-C to stop it.

Warning: Ctrl-C isn't a magic wand and it can't undo things that aren't undoable, like a partially complete format command. However, for things like the dir command that seem to go on forever or questions you're asked at the prompt that you don't know the answer to, the abort command is an excellent Command Prompt trick to know.
2. View a Command's Results One Page (or Line) at a Time

Ever run a command, like the dir command, that produces so much information on the screen that it's almost useless? You're not alone.

One way around this is to execute the command in a special way so whatever information is generated is shown to you one page, or one line, at a time.

Syndicate content