How to create a large file (any format) using vbs or windows-based software tool ?


Question:
I am trying to create a large file to test upload speed. Need to know how to do so easily. I have found a lot of splitters but no file creators. I know one alternative is to zip up files. Any others ?
The correct way to do this would be to write a file. You can easily determine the size of file you want, by determining the sizeof a character and outputting that many characters.

Example of how to write create a file.
Option Explicit
Dim objFSO, objFSOText, objFolder, objFile
Dim strDirectory, strFile
strDirectory = "C:\bandwidth_test\"
strFile = "\test_file.txt"

' Create the File System Object
Set objFSO = CreateObject("Scripting.FileSy...

' Create the Folder specified by strDirectory on line 10
Set objFolder = objFSO.CreateFolder(strDirecto...

' -- The heart of the create file script -----------------------
' -- Creates the file using the value of strFile on Line 11
' ------------------------------...
Set objFile = objFSO.CreateTextFile(strDirec... & strFile)
Wscript.Echo "Just created " & strDirectory & strFile

Wscript.Quit
More Questions & Answers...
  • Can anyone help me with my project i need to make a project on human resource department of a company?
  • What is disaster management?
  • I have 1 year experience in software testing. can any body suggest me the latest job openings in testing?
  • What is the human resource policy of RANBAXY?
  • What, in short, is six sigma?
  • How to get a job in it field? Working in BPO. completed software testing course...pls help?
  • Details of Indian Universities that conducts Ph.D course in Management thro distance education mode?
  • What is the job desription for a human resource worker?
  • The questions and answers post by the user, for information only, AnswersRoom.com does not guarantee the right
    Copyright © 2007 AnswersRoom.com -   Terms of Use -   Contact us

    Hot Topic