Jump to content

Recommended Posts

Posted (edited)

Sometimes you have to do a lot of network testing, and that can be a real pain if you have to sneaker-net the code everywhere.

I have written the following script to using a network share with read and write permissions.

DEFAULT_DELAY 75
DELAY 3000
GUI R
DELAY 1000
STRING cmd.exe
ENTER
DELAY 500
REM Change directory to TEMP 
STRING CD %TEMP%
ENTER
DELAY 500
REM Copy files down from network share
STRING xcopy "\\network_share\COPY_FILES\iperf" /i /Y
ENTER
DELAY 1000
REM Run Iperf with as needed switches and output to file
STRING iperf.exe -c <IpaddressofServer> -w 8k > \\network_share\PERFORMANCE_FILES\IPERF\%username%-%computername%.txt
ENTER

Edited by theGANOUSH

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...