komlenic.com

making noise since 1977

Creating Dummy Files on Windows

« | Thu August 28, 2008 | comments and reactions | permanent link | »

This post is more than two years old. It might be still-relevant and maybe even awesome, but it's probably outdated (and likely embarassing!) Proceed with care.

If you find yourself needing to create some "dummy" files of a specific size (perhaps for testing file transfers), the windows File System Utility fsutil.exe can help. On Windows XP, it's located in C:WINDOWSSystem32. The following command will create dummy files:

fsutil file createnew filename filesize

...where filename is the path/name of the file to be created and filesize is the file's size in bytes.

blog comments powered by Disqus