G
Guest
Is there a way to add a paramater to opening the application?
For instance. If I have a windows form that will modify a registry value,
and I'd like to set it up so that it either closes after it runs, or it stays
open. What I'd like to do is add a paramater to the command line that will
indicat this. Like:
c:\editreg.exe -close
and the "-close" paramater would be passed into a variable somehow that
would allow me to program it so that the program would automatically close
when it's finished running...
Any other ways I can accomplish this?
For instance. If I have a windows form that will modify a registry value,
and I'd like to set it up so that it either closes after it runs, or it stays
open. What I'd like to do is add a paramater to the command line that will
indicat this. Like:
c:\editreg.exe -close
and the "-close" paramater would be passed into a variable somehow that
would allow me to program it so that the program would automatically close
when it's finished running...
Any other ways I can accomplish this?