Passing parameters from Other Application to .Net
-
Hi, I have console based application which send request by using httpwebrequest method and save the response in XML file. I need to accept parameters from other application which is not in .Net. Is it possible to build batch file that accept arguments from other application and then pass it to .Net console based application? Thanks, Shahzad
-
Hi, I have console based application which send request by using httpwebrequest method and save the response in XML file. I need to accept parameters from other application which is not in .Net. Is it possible to build batch file that accept arguments from other application and then pass it to .Net console based application? Thanks, Shahzad
Every .NET (and indeed windows) application can have arguments - see the "args" parameter to your "main" method. When your external app starts your console app. it can provide the parameters as part of the command line.
Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
-
Every .NET (and indeed windows) application can have arguments - see the "args" parameter to your "main" method. When your external app starts your console app. it can provide the parameters as part of the command line.
Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
If I have to test it through batch file then how I will pass the arguments and also invoke the .Exe file, can you provide a sample?
-
If I have to test it through batch file then how I will pass the arguments and also invoke the .Exe file, can you provide a sample?
You are joking, aren't you? He said, having a horrible feeling you aren't
Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
-
You are joking, aren't you? He said, having a horrible feeling you aren't
Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
As he deleted the original posts, we'll never know.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
As he deleted the original posts, we'll never know.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
The last message he delete was "Yes i am..." Which I think translates into "no, i really am that in-experienced..." Four years he's been here, and claims to be a senior software developer - it make you wonder where he got his educational certificates! :sigh:
Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
-
The last message he delete was "Yes i am..." Which I think translates into "no, i really am that in-experienced..." Four years he's been here, and claims to be a senior software developer - it make you wonder where he got his educational certificates! :sigh:
Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
-
Boxtops my friend. Eat enough Progammer Os and Developer Flakes and for just postage and handling you can be certified in software engineering. ;P
I thought it was only Driving Licenses you could get from a Christmas cracker! :laugh:
Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
-
The last message he delete was "Yes i am..." Which I think translates into "no, i really am that in-experienced..." Four years he's been here, and claims to be a senior software developer - it make you wonder where he got his educational certificates! :sigh:
Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
@OriginalGriff: Dont be jealous. Also show the previous posts... The thing is you don't know the answer and I am done with my task.
-
@OriginalGriff: Dont be jealous. Also show the previous posts... The thing is you don't know the answer and I am done with my task.
But you apparently know the answer - instead of sharing you deleted the question so now we have this pointless thread on the forum. If you hadn't deleted the question and had posted the solution you found then many others in the future may have benefited. This is what the CodeProject community is all about.
Dave
If this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier. Please take your VB.NET out of our nice case sensitive forum.(Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)