Go Back   Cyber Tech Help Support Forums > Operating Systems > Windows NT, 2000, 2003, 2008

Notices

Reply
 
Topic Tools
  #1  
Old October 22nd, 2001, 06:43 PM
Tobmello Tobmello is offline
Member
 
Join Date: Dec 2000
Location: Denver, CO USA
Posts: 85
Batch file cmds

I'm trying to create a simple batch file and can't seem to do so...

for ex. - I want a cmd prompt window to open and run an ipconfig. I can get the window to open using just "cmd" in the batch file. How do I get the ipconfig.exe to run on its own inside the window? I'm not even sure the ipconfig is running at all. I used a start cmd to specify the path to the ipconfig.exe but nothing i've tried so far is workin, thanks!
Reply With Quote


  #2  
Old October 22nd, 2001, 11:59 PM
demon67 demon67 is offline
New Member
 
Join Date: Sep 2001
Posts: 4
open notepad and type the following.

@echo off
ipconfig


save the file as ip (or whatever you want).bat (ensure the extension is .bat

save in your WINNT dir

run cmd and type the name of the file you saved ie "ip"

This ill bring up the ipconfig utility
Reply With Quote
  #3  
Old October 23rd, 2001, 03:26 PM
Tobmello Tobmello is offline
Member
 
Join Date: Dec 2000
Location: Denver, CO USA
Posts: 85
thanks demon! I'm halfway there, is there a way to actually have both the cmd window and ipconfig run from a batch file? That way just clicking on the batch file on my desktop would run the ipconfig or any other cmd line tools...
Reply With Quote
  #4  
Old October 23rd, 2001, 09:26 PM
Br1an_g Br1an_g is offline
New Member
 
Join Date: Oct 2001
Location: Scotland
Posts: 3
hey there:

@echo off

c:\windows\winipcfg.exe (the path to the prog)

save as ip.bat as described b4

regards

Brian
Reply With Quote
  #5  
Old October 30th, 2001, 09:34 PM
Theoran's Avatar
Theoran Theoran is offline
Garfield Fanatic
 
Join Date: May 2001
O/S: Windows XP Pro
Age: 96
Posts: 2,524
brian_g,

A little FYI for ya,

winipcfg is the Windows 98 prog. In Win NT & 2000 it is just ipconfig.
Reply With Quote
  #6  
Old December 4th, 2004, 04:57 AM
jmike71 jmike71 is offline
New Member
 
Join Date: Dec 2004
Posts: 1
Wink

The batch file you're looking for is the following:

@echo off
c:\windows\system32\ipconfig.exe
@pause

It's a bit different in NT, XP operating systems vs. Win9x.
Reply With Quote
  #7  
Old December 4th, 2004, 10:19 AM
smurfy's Avatar
smurfy smurfy is offline
Cyber Tech Help Moderator
 
Join Date: Sep 2000
O/S: Linux
Location: Christchurch New Zealand
Posts: 8,447
Wow, that must be a big cave, it took 3 years for the echo to come back.


jmike71, welcome to Cyber Tech Help. Nice to have you here but is there any particular reason you replied to this post which was solved 3 years ago with basically the same answer that solved it?
Reply With Quote
  #8  
Old December 9th, 2004, 10:53 AM
DrCreek DrCreek is offline
New Member
 
Join Date: Sep 2004
Posts: 6
and........ lol
Reply With Quote
  #9  
Old December 10th, 2004, 02:55 PM
z1p's Avatar
z1p z1p is offline
Cyber Tech Help Moderator
 
Join Date: Oct 2004
O/S: Windows Vista 64-bit
Location: Massachusetts
Posts: 6,275
Blog Entries: 1
Talking

And it must have been a really dark cave as the original question had not been answered.

jmike was the first to provide a working answer and maybe it will help someone else in the future.
Another option that would work is:

@echo off
cmd /k ipconfig
Reply With Quote
  #10  
Old August 19th, 2005, 07:42 AM
xuser xuser is offline
New Member
 
Join Date: Aug 2005
Posts: 1
also u can check this...it can't get more easy

@echo.
ipconfig
@echo.
@pause
Reply With Quote
  #11  
Old August 19th, 2005, 08:03 AM
smurfy's Avatar
smurfy smurfy is offline
Cyber Tech Help Moderator
 
Join Date: Sep 2000
O/S: Linux
Location: Christchurch New Zealand
Posts: 8,447
Arrrggggghhhhhh and the topic that wouldn't die is resurrected yet again.
Reply With Quote
  #12  
Old August 20th, 2005, 05:43 AM
Spider's Avatar
Spider Spider is offline
Cyber Tech Help Moderator
 
Join Date: Nov 2001
O/S: Windows 7 32-bit
Location: Vancouver, Canada
Posts: 12,768
None the less smurfy that joke you told in December 4th, 2004 is still funny
Reply With Quote
  #13  
Old October 12th, 2009, 09:25 PM
devtek devtek is offline
New Member
 
Join Date: Oct 2009
Posts: 1
Ipconfig bat file

Here is what i use for ipconfig, just paste it into a notepad, and save as ipconfig.bat, or whatever you want to call it.( code below the dotted line)
================================================== =====

@echo off
@start "IPCONFIG /all" /D "%SystemRoot%/system32" /B "%SystemRoot%/system32/ipconfig.exe" /all
pause
exit
Reply With Quote
  #14  
Old October 16th, 2009, 03:57 AM
smurfy's Avatar
smurfy smurfy is offline
Cyber Tech Help Moderator
 
Join Date: Sep 2000
O/S: Linux
Location: Christchurch New Zealand
Posts: 8,447
Is it still funny after another 4 years?
Reply With Quote
  #15  
Old October 17th, 2009, 04:18 PM
Spider's Avatar
Spider Spider is offline
Cyber Tech Help Moderator
 
Join Date: Nov 2001
O/S: Windows 7 32-bit
Location: Vancouver, Canada
Posts: 12,768
It's Google giggling after all these years. We're #2 on "ipconfig bat file".
Reply With Quote
Reply

Bookmarks

Topic Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump




All times are GMT +1. The time now is 05:31 AM.