Jump to content
Sign in to follow this  
adam162

Console read and write

Recommended Posts

adam162

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
Tvern

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
adam162

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.