Page 1 of 1

Need a Bat file

Posted: 25 Feb 2009 10:20
by krumthi
Okay, I am looking for some help. I would like to have a bat file that would take ipconfig /all and convert that to a text file for later so I don't have to keep going back to the differnt computers. I do not know if it is pssible to have the txt file save as the computer name.txt either.

I am quite new at bat programming but I know a little I would appericate all the help you can give me

Thanks in advance

Posted: 25 Feb 2009 11:21
by tempdude
Try this:

Code: Select all

@echo off
echo |ipconfig /all > file.txt

Posted: 25 Feb 2009 14:11
by _m

Code: Select all

@>File.txt IPCONFIG /ALL