Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading user input from powershell through scriptcs #12

Open
boney84 opened this issue Jul 7, 2016 · 1 comment
Open

Reading user input from powershell through scriptcs #12

boney84 opened this issue Jul 7, 2016 · 1 comment

Comments

@boney84
Copy link

boney84 commented Jul 7, 2016

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
Copy link
Author

boney84 commented Jul 11, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@boney84 and others