Hi friends,
Can any one please tell me how to write a vb project (.exe) which can run directly from command prompt and can take some arguments....(like we do as Run...Notepad)...but with args...
ThanX in advance...
Printable View
Hi friends,
Can any one please tell me how to write a vb project (.exe) which can run directly from command prompt and can take some arguments....(like we do as Run...Notepad)...but with args...
ThanX in advance...
You use the Command function. Here is an example
MYParm = UCase(Left(Command, 3))
If your program was named YourProgram then MyParm would wind up containing "wxy" if the user typed
YourProgram wxyz