The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 2,947 other followers

command line – create empty text file from a batch file (via: Stack Overflow)

Posted by jpluimers on 2013/08/15

StackOverflow has [WayBack] quite a [WayBackfew questions [WayBackon creating [WayBackempty text files from a batch file.

Most answers involve the [WayBack] NUL special file (which is not available on one special version of Windows [WayBackWindows Fundamentals for Legacy PCs, but can easily be retrofitted).

[WayBack] This is the solution I use most often:

type NUL > EmptyFile.txt


via: [WayBackcommand line – How to create empty text file from a batch file? – Stack Overflow.

2 Responses to “command line – create empty text file from a batch file (via: Stack Overflow)”

  1. IL said

    Ouch! Code closing tag showed up :)

    • jpluimers said

      Fixed it.

      WordPress and source code with angle brackets (greater than and less than) is often a problem. Need to find a better solution to it as it drives me nuts : even switching between text view and visual view can kill parts of your blog post.

      I’ve logged numerous issues, but somehow they cannot fix it permanently:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: