Hi!
I'm using visual studio 2003, VB.NET and projectplattform: smartDevice application.
I'm trying to create an application, exe-file that shall perform this:
1. user calls the file: run c:\createXML.exe /2 /3 /8
2. a function in this exe-file will read these arguments (2,3,8 ) and creates a xmlfile containing these values.
3. close this application.
That's it...
So, the question is:
How can I read the arguments? I got a small code for this but it doesn't work in this plattform, here it is:
Code:
dim strArguments() as string
dim strArgument as string
strArguments() = System.Environment.GetCommandLineArgs()
strArgument = strArguments(0) '---> value = /2
Is there any other way to pick up the arguments (command line) for this plattform?
/TonyT
I'm using visual studio 2003, VB.NET and projectplattform: smartDevice application.
I'm trying to create an application, exe-file that shall perform this:
1. user calls the file: run c:\createXML.exe /2 /3 /8
2. a function in this exe-file will read these arguments (2,3,8 ) and creates a xmlfile containing these values.
3. close this application.
That's it...
So, the question is:
How can I read the arguments? I got a small code for this but it doesn't work in this plattform, here it is:
Code:
dim strArguments() as string
dim strArgument as string
strArguments() = System.Environment.GetCommandLineArgs()
strArgument = strArguments(0) '---> value = /2
Is there any other way to pick up the arguments (command line) for this plattform?
/TonyT