|
-
Oct 11th, 2006, 10:01 AM
#1
Thread Starter
Frenzied Member
how to retrieve the EXE Parameters from within the application
Dear all,
i have a small exe project that does a small job. It is supposed to recieve a single paramter on runtime in order to tag the function.
i will can it from within another program as following :
VB Code:
process.start("printinvoice.exe Username")
from within the project PrintInvoice i need to get the value of the passed parameter at startup . How can i do this
thx in advance
-
Oct 11th, 2006, 01:32 PM
#2
Thread Starter
Frenzied Member
Re: how to retrieve the EXE Parameters from within the application
any answers ???
-
Oct 11th, 2006, 01:45 PM
#3
Re: how to retrieve the EXE Parameters from within the application
why doesn't anyone ever state what version of .NET they use
-
Oct 11th, 2006, 02:02 PM
#4
Thread Starter
Frenzied Member
Re: how to retrieve the EXE Parameters from within the application
VS 2003 , Sorry kleinma no one is old enough for Doing mistakes
rgds
-
Oct 11th, 2006, 02:17 PM
#5
Re: how to retrieve the EXE Parameters from within the application
In 2003, you can get your command line args using code like this
VB Code:
For Each S As String In Environment.GetCommandLineArgs()
MessageBox.Show(S)
Next
keep in mind that in 2003, the first command line arg (argument at position 0 of the array) is always the full path to the exe that is running.
-
Oct 11th, 2006, 02:40 PM
#6
Thread Starter
Frenzied Member
Re: how to retrieve the EXE Parameters from within the application
i am using VS2003
Thank you very much for your kind answer
i will give it a go now
-
Nov 23rd, 2006, 08:56 AM
#7
Lively Member
Re: how to retrieve the EXE Parameters from within the application
How do you get command line parameters in VB 6.0?
-
Nov 23rd, 2006, 11:22 AM
#8
Thread Starter
Frenzied Member
Re: how to retrieve the EXE Parameters from within the application
i think u better post this question in the classical vb6 section
Thank y ou
-
Nov 23rd, 2006, 11:55 AM
#9
Re: how to retrieve the EXE Parameters from within the application
in VB6 you can see the command line arguments in a string with this
You have to parse it yourself.
-
Nov 25th, 2006, 10:30 PM
#10
Lively Member
Re: how to retrieve the EXE Parameters from within the application
thanks. got that covered.
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
|