Skip to main content

How to create a blank file with a fixed size

I had the need today to create a number of blank files with a fixed size.   I thought I would share the method.

fsutil is the program needed to create a blank file.   Under Windows 7, it needs to be run as the administrator.

It's used in the following way:

fsutil file createnew <name of file> <size in bytes>


For example the following line would create a 10mb blank Word document:


fsutil file createnew C:\file.doc 10485760


Just as the following line would create a 1gb blank Excel document:


fsutil file createnew C:\file.xls 1073741824

Comments

Popular posts from this blog

Fun Little Earthquake

It's 1:45pm EST in Ottawa, Ontario, Canada. We just had an earthquake.  Not strong enough to damage anything, but enough that I watched people run out of buildings. What a fun Wednesday.

Error 217 - Error creating product object on Domino 64 bit

I'd like to share something with you.   An error that you'll get if you are trying to use ODBC with Domino 8.5.1 64bit. It starts out with an agent error of Error 217.  The text of the error is "Error creating product object" You can read about it here on the Notes/Domino forum . You can find the solution here as well . I guess I'm now waiting for Domino 8.5.2 for a solution for this.   It would have been nice to have had this in the release notes.  It would have help me greatly.

Lotus Trading Cards

I was painting the house last night, and my mind got to wandering... Bruce Elgort mentioned on Twitter last night that he was thinking of a VC fund for Lotus projects. So my mind wandered about that, and turned to how we present ourselves. I got to thinking that business cards are so ... old school. I think we need Trading Cards. So, here are the first few I've come up with.