+ Reply to Thread
Results 1 to 7 of 7

Run a LAN Speed test using a Macro?

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    19

    Wink Run a LAN Speed test using a Macro?

    Hi,

    I conduct hourly speed tests on our servers using a LAN speed test program. I was looking for help creating a macro that could run this for me and record the results as this would undoubtedly save me copious amounts of valuable time. I'm afraid I know nothing of programming these macros, and the extent of my knowledge of them is recording very simple ones to help get around repetitive everyday tasks.

    Basically I want the macro to run the LAN Speed Test program, print the results through XPS document writer using the current time and date as part of the saved name and also to add the results to the workbook in the next slot. If this is impossible then that's fine, I'll have to just continue running them or create some Python script that could maybe run it.

    Thanks in advance for any help.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Run a LAN Speed test using a Macro?

    What is the name of the LAN speed test program? Does it have an API (allows it to be controlled through vba)? In the vbaeditor try going to tools -> references and see if you can find it in that list. That would make things easier. Otherwise you might be able to do it with a shell command to run the program but not sure if you would be able to get the results back.

  3. #3
    Registered User
    Join Date
    03-07-2013
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Run a LAN Speed test using a Macro?

    It is just called LAN Speed Test v2 by Totusoft.com. It is not in the vbaeditor list.

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Run a LAN Speed test using a Macro?

    Does it have to use that program? If not, I'd say the first step would be to find an alternative with an API reference. Does this do what you need? http://www.internet2.edu/performance/ndt/api.html if so, that might be an option. You should be able to call the speed test for that from within excel.

  5. #5
    Registered User
    Join Date
    03-07-2013
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Run a LAN Speed test using a Macro?

    I'd rather keep the same program if it's possible. It's very effective and simple to use, it simply writes a file to a specified folder on a network, then reads it and tells you how fast the read/write speed was.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Run a LAN Speed test using a Macro?

    The site suggests there is command line usage of the app so you could probably use a shell script approach.

    You could always post a question on their site.
    Cheers
    Andy
    www.andypope.info

  7. #7
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Run a LAN Speed test using a Macro?

    If it all it does is read/write a file to a specified folder on a network, maybe you can just get vba to do this? You might need to play about it to get the speed/accuracy balance right but you should be able to time how long it takes to say, read and write 10000 characters to a text file to get a similar idea to what that program does.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1