Stu Posted January 11, 2008 Share Posted January 11, 2008 This is my first post... I am trying to use Send to enter information into a Command Prompt for IP switching. I am currently using batch files and would like to use AutoIT so I can compile it to an executable so people won't be able to edit it. Here is an example of what I am looking to do. Run("cmd") Sleep(500) Send("netsh interface ip set address "Local Area Connection" static xxx.xxx.xxx ect.") (Following the word Static would be the IP, Subnet, etc.) Thanks for any help on this. Link to comment Share on other sites More sharing options...
Developers Jos Posted January 11, 2008 Developers Share Posted January 11, 2008 (edited) Send('netsh interface ip set address "Local Area Connection" static xxx.xxx.xxx ect.') But why use CMD and Send ? Just run the command directly with Run() ... Edited January 11, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now