|
-
Jan 26th, 2009, 09:38 PM
#1
Thread Starter
Junior Member
How do I send a parameter to a Console Application
I created a Console Application, with a Sub Main(Byval str As String), and when I run the debugger I get the following error:
Error 1 No accessible 'Main' method with an appropriate signature was found in ...
Also I'd like the solution to my problem to apply not only to the debugger, but also to the .exe file that will eventually be created.
Also, I found the following code on the internet, but I don't understand how to send the parameter in still.
Code:
Public Sub Main()
MsgBox Command$,vbOk, "Command Line params"
End Sub
Do I have to open cmd.exe, type: programname.exe -parameter 'Or something of that sort?
Thanks
Last edited by 5te4lthX; Jan 26th, 2009 at 09:43 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|