Difference between revisions of "Genfile"

From DIDEAS Wiki
Jump to: navigation, search
m
m
Line 9: Line 9:
 
examples:
 
examples:
  
genfile outfile.txt 10 0x41  - create a 10 byte file with the the letter 'A' (65)
+
genfile outfile.txt 10 0x41  - create a 10 byte file containing the letter 'A' (65)
  
genfile outfile.bin 10k 255 - create a 10k file with the value 255
+
genfile outfile.bin 10k 255 - create a 10k file with containing value 255
  
genfile outfile.bin 4C 255 2k - create a file 8k in size(4 clusters each which are 2k) with the value 255
+
genfile outfile.bin 4C 255 2k - create a file 8k in size(4 clusters each which are 2k) containing the value 255
 +
 
 +
genfile c:\temp\outfile.bin $100C 255 2k - create an 8meg file in c:\temp

Revision as of 11:43, 22 August 2005

genfile : create a file with single value

  • Usage : genfile [output file name] [size bytes in hex] [value in hex] <cluster size>
  • All numbers may be expressed in decimal or hex. Hex is preceded with $ or 0x
  • bytes may be followed by the power of 2 modifiers (K, M, G), or C to multiply by the cluster size (default = 512)

examples:

genfile outfile.txt 10 0x41 - create a 10 byte file containing the letter 'A' (65)

genfile outfile.bin 10k 255 - create a 10k file with containing value 255

genfile outfile.bin 4C 255 2k - create a file 8k in size(4 clusters each which are 2k) containing the value 255

genfile c:\temp\outfile.bin $100C 255 2k - create an 8meg file in c:\temp