Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

simple cmd launcher and type in ping


  • Please log in to reply
3 replies to this topic

#1 pcjunki

pcjunki

    Wayfarer

  • Active Members
  • Pip
  • 92 posts

Posted 10 May 2012 - 04:05 PM

here's my sample code i use, it launch cmd, and types out ping for you
so all you have to do is type in a computer/server name, or ip address


  Run ("C:\Windows\System32\cmd.exe") SLEEP(100) Send("cd{SPACE}\{ENTER}") Send("cls{ENTER}") Send("ping{SPACE}")  

  • JScript likes this







#2 JScript

JScript

    I'm back ... I miss, why not!

  • Active Members
  • PipPipPipPipPipPip
  • 1,070 posts

Posted 10 May 2012 - 04:49 PM

Very good, AutoIt is synonymous of automation!

Regards,

João Carlos.
http://notebook.forumais.com (Forum Maintenance Notebooks and Desktop)http://autoitbrasil.com/ (AutoIt v3 Brazil!!!)
Spoiler

Posted Image Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!       


#3 D4RKON3

D4RKON3

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 544 posts

Posted 11 May 2012 - 11:00 AM

There is also a built-in function to do this.
Here you go: http://www.autoitscript.com/autoit3/docs/functions/Ping.htm

#4 JScript

JScript

    I'm back ... I miss, why not!

  • Active Members
  • PipPipPipPipPipPip
  • 1,070 posts

Posted 12 May 2012 - 11:24 AM

But we can not stay only with the internal functions, and he was creative too!

Regards,

João Carlos.
http://notebook.forumais.com (Forum Maintenance Notebooks and Desktop)http://autoitbrasil.com/ (AutoIt v3 Brazil!!!)
Spoiler

Posted Image Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!       





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users