Jump to content

[Request] Create file with specific size


Recommended Posts


Only to be able to release *something* on February 29, a small batch (a simple adaptation of multiply.cmd):

http://reboot.pro/topic/2986-yacbfc-dec2hexcmd-and-hex2deccmd/

KMG2B.cmd :small batch file to convert numbers expressedin Kb, Mb, Gb into bytes, overcoming the 0x07FFFFFFlimit in batch (aka 2,147,483,647)this is about "real" K/M/G, i.e. powers of 1024what would be now called KiB, MiB, GiB.******** Version 1.0 29 February 2016 ********by jaclazThis file is licensed under my "CAREWARE" license:http://jaclaz.altervista.org/Projects/careware.htmlUsage:KMG2B.cmd Integer[K|M|G]

jaclaz

KMG2b.zip

Link to comment
Share on other sites

Only to be able to release *something* on February 29, a small batch (a simple adaptation of multiply.cmd):

http://reboot.pro/topic/2986-yacbfc-dec2hexcmd-and-hex2deccmd/

KMG2B.cmd :small batch file to convert numbers expressedin Kb, Mb, Gb into bytes, overcoming the 0x07FFFFFFlimit in batch (aka 2,147,483,647)this is about "real" K/M/G, i.e. powers of 1024what would be now called KiB, MiB, GiB.******** Version 1.0 29 February 2016 ********by jaclazThis file is licensed under my "CAREWARE" license:http://jaclaz.altervista.org/Projects/careware.htmlUsage:KMG2B.cmd Integer[K|M|G]

jaclaz

 

Try KMG2B.cmd, work perfectly.

But if put it in directory which contain space in path it'll error. You may add some double quote for general use. Tks

Link to comment
Share on other sites

 

Try KMG2B.cmd, work perfectly.

But if put it in directory which contain space in path it'll error. You may add some double quote for general use. Tks

 

Well, that is left as an exercise for the reader, if he/she actually uses directories with spaces, however, it still works, only if you run it without parameters, won't find itself and not print the "help" text, but otherwise functions fine.

 

jaclaz

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...