RE: C# console application executing command line commands?
- From: "DaShiell, Jude T. CIV NAVAIR 1490, 1, 26" <jude.dashiell@xxxxxxxx>
- To: <programmingblind@xxxxxxxxxxxxx>
- Date: Thu, 5 Aug 2010 08:30:37 -0400
To have your command execute another command try:
Shell("command parameters") this works in gwbasic and may work for what
you're doing as well. Now to solve the hit any key to exit problem, one
way to do it is to make a batch file in which to run your program and
put an exit statement at the end of that batch file just after the line
that runs your program.
-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Jacob Kruger
Sent: Wednesday, August 04, 2010 15:47
To: programmingblind@xxxxxxxxxxxxx
Subject: Re: C# console application executing command line commands?
Got that far, but apart from using
System.Console.WriteLine to write strings to the console output, without
them executing, and also trying to start a System.Diagnostics.Process
like have done in past to launch external apps, I don't seem to be able
to find out how to actually execute a command, and it always finishes
off with something like 'Press any key' when it finishes executing.
Stay well
Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'
----- Original Message -----
From: Katherine Moss <mailto:plymouthroamer285@xxxxxxxxx>
To: programmingblind@xxxxxxxxxxxxx
Sent: Wednesday, August 04, 2010 8:38 PM
Subject: RE: C# console application executing command line
commands?
No you're not. All you have to do is to use the Console App
template in VS2010 or 2008. That will set up the correct namespaces and
such and then just tell it what you want the program to do.
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Jacob Kruger
Sent: Wednesday, August 04, 2010 1:40 PM
To: Program-l
Cc: ProgrammingBlind@xxxxxxxxxxxxx
Subject: C# console application executing command line commands?
Ok, next silly question...
Since have never really created command line/console
applications, am now just trying to figure out how to get a console
application created in C# to execute command line commands, and then how
to get it to close/exit itsself after operation?
Idea would be to create a slightly trumped up target for
something like a send to shortcut that can do a bit more than your
average batch file.
Have looked for simple examples, but am obviously, again, using
incorrect search terms or something - LOL!
TIA
Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'
__________ Information from ESET NOD32 Antivirus, version of
virus signature database 5341 (20100804) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of
virus signature database 5339 (20100804) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of
virus signature database 5339 (20100804) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of
virus signature database 5341 (20100804) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind
Other related posts:
- » C# console application executing command line commands?- Jacob Kruger
- » Re: C# console application executing command line commands?- Martin Slack
- » RE: C# console application executing command line commands?- Katherine Moss
- » Re: C# console application executing command line commands?- Jacob Kruger
- » Re: C# console application executing command line commands?- Jacob Kruger
- » RE: C# console application executing command line commands?- Katherine Moss
- » Re: C# console application executing command line commands?- Jamal Mazrui
- » RE: C# console application executing command line commands?- Katherine Moss
- » Re: C# console application executing command line commands?- Littlefield, Tyler
- » RE: C# console application executing command line commands?- Katherine Moss
- » Re: C# console application executing command line commands?- Jacob Kruger
- » Re: C# console application executing command line commands?- black ares
- » Re: C# console application executing command line commands?- black ares
- » Re: C# console application executing command line commands?- black ares
- » RE: C# console application executing command line commands? - DaShiell, Jude T. CIV NAVAIR 1490, 1, 26
- » Re: C# console application executing command line commands?- Dave
- » RE: C# console application executing command line commands?- Katherine Moss
- » Re: C# console application executing command line commands?- Littlefield, Tyler
- » Re: C# console application executing command line commands?- Jacob Kruger
- » Re: C# console application executing command line commands?- Jacob Kruger
- » Re: C# console application executing command line commands?- Jacob Kruger
- » RE: C# console application executing command line commands?- Katherine Moss
- » Re: C# console application executing command line commands?- Littlefield, Tyler
- » RE: C# console application executing command line commands?- Øyvind Lode
- » RE: C# console application executing command line commands?- Øyvind Lode
- » RE: C# console application executing command line commands?- Katherine Moss
- » RE: C# console application executing command line commands?- Katherine Moss
- » Re: C# console application executing command line commands?- Littlefield, Tyler
- » RE: C# console application executing command line commands?- Katherine Moss
- » Re: C# console application executing command line commands?- Littlefield, Tyler
- » RE: C# console application executing command line commands?- Katherine Moss
- » Re: C# console application executing command line commands?- black ares
- » Re: C# console application executing command line commands?- Jacob Kruger
- » Re: C# console application executing command line commands?- Jacob Kruger
- » Re: C# console application executing command line commands?- Littlefield, Tyler
- » Re: C# console application executing command line commands?- Martin Slack
- » Re: C# console application executing command line commands?- Jacob Kruger
- » Re: C# console application executing command line commands?- Jacob Kruger
- » RE: C# console application executing command line commands?- DaShiell, Jude T. CIV NAVAIR 1490, 1, 26
- » Re: C# console application executing command line commands?- Jacob Kruger