Jump to content

Recommended Posts

Posted (edited)

I want to ping a series of computers from 10.0.0.1 to 10.0.0.10 (for example) and pipe the results to a text file.

For $4oct = 1 to 10

run ("ping 10.0.0.$4oct >> c:\text.txt")

Next

Exit

The above would just get me 3 cmd line screens, but no pinging.

How would you do this in AutoIt?

Edited by autoitNOW
An ADVOCATE for AutoIT
Posted (edited)

Try like this:

For $4oct = 1 to 10
  RunWait(@comspec & " /c ping 10.0.0." & $4oct & ">>File.txt","",@sw_hide) 
Next

Exit
Edited by ezzetabi

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
  • Recently Browsing   0 members

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