Guide to Windows Commands/Tips and Tricks

From Wikibooks, open books for an open world
< Guide to Windows Commands
Jump to: navigation, search

This page contains tips for when you are using the windows command prompt. Some of these tips will not be immediately obvious so it's worth giving this module a quick read.

Create an Empty File[edit]

TYPE NUL > EmptyFile.txt

Continue a Line[edit]

The caret '^' is the escape character in cmd.exe. It can be used to continue a command across a line end if it is the last character on a line.

C:\>ECHO Hello ^
More? World
Hello World
 
C:\>