The Wiert Corner – irregular stream of stuff

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

  • My badges

  • Twitter Updates

    • @matijn (: Enneh: sterkte! 48 minutes ago
    • @IanColdwater Welcome back. I was worried too. Good to know that you are OK. Hope the turned down notifications made things bearable. 51 minutes ago
    • RT @francesc: I updated the slide deck from my "Introduction to Go" at @CERN earlier this year It now includes links to the recordings for… 59 minutes ago
    • RT @danidonovan: therapist: and what do we do when we’re feeling stressed? me: stop making plans, avoid text messages, and accidentally al… 1 hour ago
    • RT @michaelbolton: 1) Thinking about counting things to measure quality? You might be able to measure *some things* *that bear on* quality.… 1 hour ago
  • My Flickr Stream

  • Pages

  • All categories

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

    Join 1,642 other followers

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

Posted by jpluimers on 2013/08/15

StackOverflow has quite a few questions on creating empty text files from a batch file.

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

This is the solution I use most often:

type NUL > EmptyFile.txt


via: command 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 )

Google photo

You are commenting using your Google 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

%d bloggers like this: