The program is vb.net 2005, and I run it from a dos batch file. Now I need to optionally send a parameter that the vb program can recognize and work with. For example, in my batch file I might call the program with a parameter like this:
call ecotpc.exe ABC
And, in my ecotpc vb program, I'd like to be able to handle the optional parameter something like this:
If %1 = "" then null routine...
psWork1 = %1
The problem is that I don't know the syntax to "capture" that variable, and I don't know what extra code I might need to add to the top section of my code (such as "imports", etc.)
Any clear, detailed example would be greatly appreciated! TIA