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
