Sign in to follow this  
Followers 0
adam162

Console read and write

4 posts in this topic

Is there a way to write to a cmd window and also let the use write in the cmd window

For example in a windows cmd you type "netsh" and you get a prompt "netsh>....." (..... where you enter the command)

and then how to read the input

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

You can use StdoutRead and StdinWrite to read and write from and to the console.

However if you run netsh through cmd I don't think that works, so it's best to open netsh directly.

Edit: I had to open FTP directly, but if you run netsh from cmd it seems to work fine.

Edited by Tvern

Share this post


Link to post
Share on other sites

Im sorry I used the netsh cmd as an example im not trying to use netsh. I wanted to show that the program sends back "netsh>" and waits for the user to write a command. Is that possible in autoit

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0