Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Dev Hardware ForumsSOFTWAREProgramming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Hardware Forums Sponsor:
  Trader Rating: 0 · #1  
Old February 25th, 2009, 10:25 AM
krumthi krumthi is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Feb 2009
Posts: 2 krumthi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m
Reputation Power: 0
DOS Batch - Ipconfig to TXT file?

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

Reply With Quote
  Trader Rating: 4 · #2  
Old February 25th, 2009, 10:29 AM
madhyena's Avatar
madhyena madhyena is online now
SץsAםмιи & Wяιτєя
Click here for more information.
 
Join Date: Sep 2004
Location: Romania - Târgu Mureş - the one and only
Posts: 4,793 madhyena User rank is General 233rd Grade (Above 100000 Reputation Level)madhyena User rank is General 233rd Grade (Above 100000 Reputation Level)madhyena User rank is General 233rd Grade (Above 100000 Reputation Level)madhyena User rank is General 233rd Grade (Above 100000 Reputation Level)madhyena User rank is General 233rd Grade (Above 100000 Reputation Level)madhyena User rank is General 233rd Grade (Above 100000 Reputation Level)madhyena User rank is General 233rd Grade (Above 100000 Reputation Level)madhyena User rank is General 233rd Grade (Above 100000 Reputation Level)madhyena User rank is General 233rd Grade (Above 100000 Reputation Level)madhyena User rank is General 233rd Grade (Above 100000 Reputation Level)madhyena User rank is General 233rd Grade (Above 100000 Reputation Level)madhyena User rank is General 233rd Grade (Above 100000 Reputation Level)madhyena User rank is General 233rd Grade (Above 100000 Reputation Level)madhyena User rank is General 233rd Grade (Above 100000 Reputation Level)madhyena User rank is General 233rd Grade (Above 100000 Reputation Level)madhyena User rank is General 233rd Grade (Above 100000 Reputation Level)  Folding Points: 305578 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305578 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305578 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305578 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305578 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305578 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 2 Years 9 Months 1 Week 1 Day 14 h 16 m 15 sec
Reputation Power: 16531
Send a message via AIM to madhyena Send a message via MSN to madhyena Send a message via Yahoo to madhyena Send a message via Google Talk to madhyena
ipconfig /all > computer.txt

This command outputs everything to the specified text file. Nothing will appear on the screen/console.

Using WSH you can find lots of other details about the system very easily. Here's an example:
vbs Code:
Original - vbs Code
    Set WshNetwork = WScript.CreateObject("WScript.Network") WScript.Echo "Domain = " & WshNetwork.UserDomain WScript.Echo "Computer Name = " & WshNetwork.ComputerName WScript.Echo "User Name = " & WshNetwork.UserName
__________________

“Greatness, combined with the hint of a 24-carat lifestyle, is within us striving to make it through, craving for attention,
and in the end, recognition, leaving a record worthy of biography on forging success stories.”
—ME

Check out MadHyeNa's Article Index. Visit PrimeRanks - We Rank You Into Pole-Position!
I succeed, conquer, and achieve, therefore I am.

Last edited by madhyena : February 25th, 2009 at 10:34 AM.

Reply With Quote
  Trader Rating: 0 · #3  
Old February 25th, 2009, 10:32 AM
krumthi krumthi is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Feb 2009
Posts: 2 krumthi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m
Reputation Power: 0
Thanks

Quote:
Originally Posted by madhyena
ipconfig /all > computer.txt

This command outputs everything to the specified text file. Nothing will appear on the screen/console.



Madhyena I could kiss you for replying so Fast! rock on.

Thanks a TON!

Reply With Quote
Reply

Viewing: Dev Hardware ForumsSOFTWAREProgramming > DOS Batch - Ipconfig to TXT file?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
     
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek