scriptcs-engines icon indicating copy to clipboard operation
scriptcs-engines copied to clipboard

Reading user input from powershell through scriptcs

Open boney84 opened this issue 9 years ago • 1 comments

hi guys, Here I have a problem to read user inputs from Command prompt or windows powershell through scriptcs.I tried with Console.ReadLine(),Console.Read() or Console.ReadKey() wrapped it around Convert.ToString() to get user response but none of them gives result.Do I need any special package to handle the user input. Any help is appreciated.

boney84 avatar Jul 07 '16 06:07 boney84

Hi guys, I got the solution I was previously executing through Windows power shell and so I don't get the response as desired while using Console.ReadLine() or Console.Read(). But when I work the scriptcs code in command prompt it reads the input and works as expected.

boney84 avatar Jul 11 '16 06:07 boney84