Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Console.ReadLine error

Status
Not open for further replies.

codemama

Programmer
Nov 13, 2007
4
US
I have a windows application that can also be run as a console application. (using AttachConsole(process.Id)
Both work fine if I run the console via a batch file.
However, if I run the application straight from the commandline I get the following error when I enter a input:

Coninue Installing (Y/N)

y

'y' is not recognized as an internal or external command,operable program or batch file.

Has anyone run across this problem? I'm not even sure how to go about debuggin it..

Any help would be greatly appreciated
 
Found a side solution. It is not programatic solution, but more how the user must run the application from command line mode.

The application must be run with the
START /WAIT

We added this to our Application Help message to clarify to the user.

If anyone know a way to solve this via code so if the user runs the app in command mode just using: app.exe it wont have the issues we were seeing please let me know.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top