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 1,640 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

–jeroen

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: http://en.forums.wordpress.com/profile/jpluimers

      –jeroen

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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: