How to get multi-line parameters in c# -
is there way multiple lines of parameters parsed through main entry point in c# application? suppose have batch process:
myapp.exe ( param1 param2 param3 )
how these parameters inside console application?
myapp.exe:
using system; namespace mynamespace { static class program { static void main(string[] args) // ^ parameters here { } }
you can parameters :
static void main(string[] args) { string param1 = args[0]; string param2 = args[1]; string param3 = args[2]; }
and launch application :
myapp.exe param1 param2 param3
Comments
Post a Comment