Sign in to follow this  
Followers 0
Stu

Send Quotes

2 posts in this topic

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.

Share this post


Link to post
Share on other sites

#2 ·  Posted (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 by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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