I have a windows forms based application made by another programmer and I need to add a few command line switches to it's
primary output exe so that I can pass arguments like:
program.exe -reinitialise or
I have found some docs online but all seem to be in C# and are for command line only programs.
This program installs via an .msi and the .exe is only constructed at the end.
Entonces mis preguntas son:
How do I add command line switches to a VB.Net application?
Where/What form do I add the parser to so that the primary output .exe accepts the args?
preguntado el 28 de agosto de 11 a las 00:08
Similar to C/C#, you get them as an array. Different from C/C#, you obtain them as a read-only property from the application itself (My.Application.CommandlineArgs)
Code sample on that page (for VB) should show you what you need i think...