Thursday, May 27, 2010

Create a File in Specific Size - For Testing

For upload test in SharePoint, I had to create files of specific size, 10 MB, 20 MB, 30 MB, 40 MB, etc. Figured out a nice command line tool to create files in specific size. FSUTIL

fsutil file createnew c:\test.doc 10485760

This will create 10 MB file.
Create a File in Specific Size for Testing

Same can be achieved with PowerShell too:

$FilePath = "C:\Test.doc"
$File = [io.file]::Create($FilePath)
$File.SetLength(1MB)
$File.Close()



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Check out these SharePoint products:

No comments :

Post a Comment

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...