Sunday, August 17, 2008

How to create file of specific size

"Hi Dave, I need to create file of specific size to test our SMS DP. Do you know easier way then to create text file and copy the text inside?"

Sure I know :) The question was really surprising to me. I see that there is still a lot of Windows admins who don't know basic commands. In this case, my recommendation is to use fsutil command which will create empty file of specific size.

fsutil file createnew c:\empty.txt 1024

will create file empty.txt and it's size is 1KB.

No comments: