|
#1
|
|||
|
|||
|
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! |
|
#2
|
|||
|
|||
|
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
|
|
#3
|
|||
|
|||
|
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...
|
|
#4
|
|||
|
|||
|
hey there:
@echo off c:\windows\winipcfg.exe (the path to the prog) save as ip.bat as described b4 regards Brian |
|
#5
|
||||
|
||||
|
brian_g,
A little FYI for ya, ![]() winipcfg is the Windows 98 prog. In Win NT & 2000 it is just ipconfig. |
|
#6
|
|||
|
|||
|
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. |
|
#7
|
||||
|
||||
|
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? |
|
#8
|
|||
|
|||
|
and........ lol
|
|
#9
|
||||
|
||||
|
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 |
|
#10
|
|||
|
|||
|
also u can check this...it can't get more easy
@echo.
ipconfig @echo. @pause |
|
#11
|
||||
|
||||
|
Arrrggggghhhhhh and the topic that wouldn't die is resurrected yet again.
|
|
#12
|
||||
|
||||
|
None the less smurfy that joke you told in December 4th, 2004 is still funny
|
|
#13
|
|||
|
|||
|
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 |
|
#14
|
||||
|
||||
|
Is it still funny after another 4 years?
|
|
#15
|
||||
|
||||
|
It's Google giggling after all these years. We're #2 on "ipconfig bat file".
|
![]() |
| Bookmarks |
«
Previous Topic
|
Next Topic
»
| Topic Tools | |
|
|
All times are GMT +1. The time now is 05:15 AM.









