flat assembler
Message board for the users of flat assembler.
Index
> Windows > how right get arguments from bat file ? |
| Author |
|
|
Ali.Z 22 Dec 2025, 12:23
yes pretty much, but keep in mind Windows arg style is space delimited,
you could convert it to C style by you using CommandLineToArgvW. or directly get argc and argv from msvcrt. (thats what I do) _________________ Asm For Wise Humans |
|||
|
|
revolution 23 Dec 2025, 00:44
If comma (,) is the separator then the custom code need to parse the raw output from GetCommandLine{A|W}.
If a space ( ) is the separator then lots of existing code can parse the raw output from GetCommandLine{A|W} and produce a list of parameters/arguments. Either way, the primary source of arguments is GetCommandLine{A|W}. Using the "W" version will allow for better support for internationalisation with non-ASCII characters. Internally Windows uses "wide" chars everywhere, and using an "A" version API incurs a conversion overhead each time an "A" API is called. |
|||
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.