Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > The IT Pro > Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Programming A discussion forum for programs and programming used in tech-related businesses.

Reply
 
LinkBack Thread Tools
Old 08-22-2008, 10:34 AM   #1 (permalink)
Registered User
 
Join Date: Aug 2006
Posts: 320
OS: XP Pro, Vista Business, Suse Linux, Win98 SE


Ping program

Hello,

I am trying to write a program on how to automate a pinging process. I just want to be able to copy an IP address off of one excel page, then be able to paste in cmd prompt and ping it and then have it switch back to the excel page and enter in if it resolved or not. Can anyone help me with this? I was thinking of writing an autohotkey script but... I am not sure how to make the program figure out if it pinged or not. PLEASE help!
tech-it-^ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 08-22-2008, 04:33 PM   #2 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,884
OS: Vista, various linux distros


Re: Ping program

Hey, why an exel page? could you not use a batch file &/ some text input?

Autohotkey does sound alright for it, you could use the Autohotkey script recorder for most of it.... As for working out whether it has worked or not, you could probably use an input to file thing(sorry that wont make sence i can't remember the correct name right now)... so that the ping command becomes something like "ping [ipAddress] > temp.text" then open it (/read it) using FileRead(http://www.autohotkey.com/docs/commands/FileRead.htm), then use IntStr(http://www.autohotkey.com/docs/Functions.htm#BuiltIn[scroll down]) to find out if the file contains the string "recieved 100%" (or whatever it is)...

Cheers,
Jamey
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-23-2008, 03:00 AM   #3 (permalink)
Manager
 
shuuhen's Avatar
 
Join Date: Sep 2004
Location: Colorado
Posts: 988
OS: Mac OS 9.1, Mac OS X 10.5.8, WinXP Pro, FreeBSD 6.0, Gentoo Linux

My System

Re: Ping program

A language like Ruby, Python or Perl would be perfect for this, but you'd have to learn one of the languages. I've never used Autohotkey (looks to be Windows-specific?), so I can't say how easy or hard this would be with it.

Instead of using an Excel spreadsheet, consider using a CSV (Excel can save spreadsheets as those). CSV's are generally easy to handle in programming languages and spreadsheet programs can open them up.
__________________


Has it been a few days since I replied to your thread? Don't panic! I'm a busy college student and may forget a post if I'm extra busy (or it might just take me a while to be able to do a decent reply). If you still need help and are awaiting my reply after a few days, PM me about it.

When posting what errors you get, please give the full message. It makes helping you much easier.
shuuhen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-05-2008, 05:45 AM   #4 (permalink)
Registered User
 
Join Date: Aug 2006
Posts: 320
OS: XP Pro, Vista Business, Suse Linux, Win98 SE


Re: Ping program

alright, yeah I'm not to familiar with Ruby and I don't know of the syntax for python. Thanks guys, I've made a nice AutoIT script. Yes, it is windows specific but AutoIT is nice because it can run on just about any Windows machine. Anyway, thanks guys I appreciate the response.

I'll have to look into those other languages, I only know java really, I kind of want to dabble in C# and C++ because I think those languages could help me with simple stuff like this to and more. Anyway, thanks again guys.
tech-it-^ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 04:37 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85