"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,820 tips!

DOS and Batch Files

Create 0 Byte Place Holder Files

SUMMARY: Create placeholder files when debugging DOS batch files.


 

If you need to create files from a batch file that merely act as place holders (i.e. they take up no hard drive space, just space in the directory), use the REM command and redirect its output to a filename of your choosing. This can be useful in case you have a batch file that works in many directories. You can have the batch file put a placeholder in every directory it acts upon, allowing you to see if the batch file worked correctly or not.



Print This Tip

Get E-Mail When New Tips are Online

Return to the DOS and Batch Files page.

 


New in MalekTips:

RSS Feeds- Subscribe!

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Get Tips!'.
 


( sample / details )
( opt-out instructions )