1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Creating a batch file for logging networking information.

Discussion in 'Windows Server' started by judyva7, Jan 29, 2011.

Thread Status:
Not open for further replies.
Advertisement
  1. judyva7

    judyva7 Thread Starter

    Joined:
    Jan 29, 2011
    Messages:
    4
    Help with a college assignment - this batch file should run with a parameter of an IP address or host name. Of course this class is web based because it's not offered at the campus I go to which makes it quite harder to figure this out. Can anyone lend a hand please?? :)
     
  2. TheOutcaste

    TheOutcaste

    Joined:
    Aug 7, 2007
    Messages:
    9,028
    Well, we aren't going to do the homework for you, but can help with understanding the commands you are trying to use.
    Post the code you have so far, and what it's not doing.

    Also, your description doesn't say much, this one line will meet the requirements you've specified:
    Echo %1
     
  3. judyva7

    judyva7 Thread Starter

    Joined:
    Jan 29, 2011
    Messages:
    4
    We have to send the output of the following commands and we've never done this before just trying to make sure this is correct. Here are the commands we have to run:

    ping 127.0.0.1 >caseproject31.txt ((to verify we can connect to our loopback adapter using ping))
    ping 192.168.100.20>>caseproject31.txt
    tracert 192.168.100.1>>caseproject31.txt
    pathping 192.168.100.10>>caseproject31.txt
    netstat -s -p tcp >>caseproject31.txt

    Does all this look correct to you??
     
  4. judyva7

    judyva7 Thread Starter

    Joined:
    Jan 29, 2011
    Messages:
    4
    I've been working on it most of the day...so I've pieced the commands together, just hoping this is what my Professor wants. He's a difficult one, points come hard and there is no extra credit. Basically the output of all this has to be sent to a text file called caseproject31 so that he can tell we did it correctly. The text book we have just doesn't give hardly any directly at all.

    Many thanks for your help!!
     
  5. TheOutcaste

    TheOutcaste

    Joined:
    Aug 7, 2007
    Messages:
    9,028
    That all looks fine, should work OK.
     
  6. judyva7

    judyva7 Thread Starter

    Joined:
    Jan 29, 2011
    Messages:
    4
    Ok thanks for your help.
     
  7. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/977703

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice