Open main menu

Wikibooks β

Windows Batch Scripting/Tips and Tricks

< Windows Batch Scripting(Redirected from Guide to Windows Commands/Tips and Tricks)

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 FileEdit

TYPE NUL > EmptyFile.txt

Continue a LineEdit

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