Jump to content

Send Quotes


Stu
 Share

Recommended Posts

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

  • Developers

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...