Hi,
I am new to the site, and new to C#.
What I need to know is how do I fetch code from the CMD.exe app? For example:
C:\appplication.exe /m texthere
I have tried searching Google, but only come up with questions how to pass commands to cmd.exe
Any help would be greatly appreciated.
Question - Pass text/data to C# via cmd.exe
Page 1 of 14 Replies - 291 Views - Last Post: 16 June 2012 - 09:33 AM
Replies To: Question - Pass text/data to C# via cmd.exe
#2
Re: Question - Pass text/data to C# via cmd.exe
Posted 15 June 2012 - 01:00 PM
What kind of application have you created? I'm assuming a Console application from the list of templates in Visual Studio.
#3
Re: Question - Pass text/data to C# via cmd.exe
Posted 16 June 2012 - 08:37 AM
ThrowsException, on 15 June 2012 - 01:00 PM, said:
What kind of application have you created? I'm assuming a Console application from the list of templates in Visual Studio.
Thanks for your reply.
I actually found a messaging toolkit, and started on that, so what I wanted to do is build a qlikview app, that can send sms's to the relevant customers.
After digging all night I found a solution, to use args[0] and so fort, but I would rather want to use "app.exe /m message_here /d device_id" and so forth, rather than "app.exe message_here device_id"
and yes it's a console app.
Thanks
#4
Re: Question - Pass text/data to C# via cmd.exe
Posted 16 June 2012 - 09:25 AM
Pho3niX90, on 16 June 2012 - 08:37 AM, said:
After digging all night I found a solution, to use args[0] and so fort, but I would rather want to use "app.exe /m message_here /d device_id" and so forth, rather than "app.exe message_here device_id"
And what is stopping you from doing so? You'd get "/m", "message_here", "/d", and "device_id" in the args array.
#5
Re: Question - Pass text/data to C# via cmd.exe
Posted 16 June 2012 - 09:33 AM
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|