I get the joke but, of course, you realize that you're not comparing
like with like. 'dd' is a utility - presumably you could have a program
in windows/ console that would produce a file of a specified size.
Anyway, it's interesting to note the bug :P
Cheers,
Mohit.
7/26/2007 | 4:19 PM.
Anand Vaidya wrote:
Linux and Windows difference in efficiency:
Problem: create a file of given size....
Windows way of doing things:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/jul07/hey0713.mspx
No of Bugs = 1 (see webpage)
Const ForWriting = 2
intBytes = InputBox("Enter the size of the file, in bytes:", "File Size")
intBytes = intBytes / 2
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.CreateTextFile _
("Testfile.txt", ForWriting, True)
For i = 1 to intBytes
objFile.Write "."
Next
objFile.Close
Linux Way of doint it:
dd if=/dev/zero of=filename.txt bs=1 count=$bytes
Hehe...
Regards
Anand
_______________________________________________
Slugnet mailing list
[email protected]
http://www.lugs.org.sg/mailman/listinfo/slugnet