Jump to content

help with batch file process


Recommended Posts

Posted

ok so i have found this simple batch file that gets information about the ip addresess from the local pc and saves it as a .txt file where ever you want. anyway i tried adding to it but when i run it the .txt files are just empty there is nothing in it.

this is the script

ipconfig/all > c:\ip.txt

c:>net view/all > c:\net.txt

c:>net localgroup/all > c:\local.txt

so the first line of code works fine but the other 2 lines just leave the .txt file empty, i have tried it with and without the c:>

please help me i really want this to work.


Posted (edited)
@Echo Off
ipconfig/all>>c:\ip.txt
net view/all>>c:\net.txt
net localgroup/all>>c:\local.txt
Exit

This should work, you were nearly there though!! :thumbup

[EDIT] Sorry, I just notcied your error. Net View & Net Localgroup do NOT support the /ALL switch.

What exactly are you trying to do?

SilverB.

Edited by SilverBulletUK

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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