Results 1 to 5 of 5

Thread: Ping URL

  1. #1

    Ping URL

    I have to create a console based application: when RUN> takes the websites I specify and pings them all 4 times and gets the ping in milliseconds then finally saves all of the information in a .csv file. Please Help me.

  2. #2
    There is a few ways you can go about this. Probably some better than others as far as grabbing the information from command, filtering, formatting etc. Actually you can create Virual Basic for Applications (VBA) inside excel. Basically going to developer tools and insurting a function button. One button for clearing fields and one button to ping each spcecified value in each numbered line in A column and output the results into B Column same numbered line. It takes some time to build, but works great. There is a really good youtube instructional video to follow along for that and explains it well. Just now I created one in about 10 minutes after working out the runtime bugs from coding typing errors. https://www.youtube.com/watch?v=m9UA_Sk202I Credits: To gigaduck. More information on how to do this and enable developer tools inside excel....http://www.techonthenet.com/excel/qu...button2007.php

    You can do this better probably with powershell scripting. However, I put together a quick and dirty batch file that will run ping to yahoo.com and google.com and outputs to a .log file. Then it filters with FIND and then appends output nfo into a new .csv file at C:\ it then deletes the ping.log file. You might be able to tweak this better with findstr commands.

  3. #3
    I need this to be in C#, and I'm going to execute my code from visual studio 2013

  4. #4
    That's a whole new ballpark. I haven't done anything in studio for a long time. I suggest posting in programming threads. Or join a specific coding website. There is a lot of good stuff on youtube channels and Microsoft has a whole slew of information on their developer network. Example: https://msdn.microsoft.com/en-us/lib...vs.110%29.aspx Since excel has developer tools built in it, I thought that was what you was looking for.

  5. #5
    There is a lot of good stuff on youtube channels and Microsoft has a whole slew of information on their developer network.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •