In C you can get each command-line argument as an element of the argv array. They system splits each argument (even if it is quote-surrounded with embedded spaces) into separate strings.
VB seems to give you the Command$ string and no tools I can find to easily split it into the separate arguments.
I know about split() but I need to get those quote-surrounded, space-containing arguments as whole strings as well as "regular" arguments.
I can do the parsing character-by-character brute force but does anyone know of a built-in function or service or "trick" which might make it easier to pull off?
Thanks
- Chuck Somerville
VB seems to give you the Command$ string and no tools I can find to easily split it into the separate arguments.
I know about split() but I need to get those quote-surrounded, space-containing arguments as whole strings as well as "regular" arguments.
I can do the parsing character-by-character brute force but does anyone know of a built-in function or service or "trick" which might make it easier to pull off?
Thanks
- Chuck Somerville