autoitNOW Posted July 26, 2004 Share Posted July 26, 2004 (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 July 26, 2004 by autoitNOW An ADVOCATE for AutoIT Link to comment Share on other sites More sharing options...
Holger Posted July 26, 2004 Share Posted July 26, 2004 Try like this: For $4oct = 1 to 10 run ("ping 10.0.0." & $4oct) Next Exit Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Link to comment Share on other sites More sharing options...
ezzetabi Posted July 26, 2004 Share Posted July 26, 2004 (edited) Try like this: For $4oct = 1 to 10 RunWait(@comspec & " /c ping 10.0.0." & $4oct & ">>File.txt","",@sw_hide) Next Exit Edited July 26, 2004 by ezzetabi Link to comment Share on other sites More sharing options...
autoitNOW Posted July 26, 2004 Author Share Posted July 26, 2004 Oh.... thanks. An ADVOCATE for AutoIT 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