|
#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
__________________
My work in progress |
|
#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?
__________________
CTH Mod errata: Applications - Gaming - Linux - Windows NT/2000/2003 - Windows95 forums. Search for your problem - we may have already answered it for someone else. As Private Messages are not searchable, they should not be used for asking or answering help questions. Remember that we are all here to learn so please post back and tell us if it's working (or not). If we have helped you, please consider supporting Cyber Tech Help with a subscription. OneAna.com |
|
#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
__________________
cmd /k ipconfig/all [use to start ipconfig from 'Run'] cmd /k ping <some website, like google or yahoo> [use to ping 'www.google.com' from 'Run'] |
|
#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.
__________________
CTH Mod errata: Applications - Gaming - Linux - Windows NT/2000/2003 - Windows95 forums. Search for your problem - we may have already answered it for someone else. As Private Messages are not searchable, they should not be used for asking or answering help questions. Remember that we are all here to learn so please post back and tell us if it's working (or not). If we have helped you, please consider supporting Cyber Tech Help with a subscription. OneAna.com |
|
#12
|
||||
|
||||
|
None the less smurfy that joke you told in December 4th, 2004 is still funny
__________________
Microsoft MVP - since 2007 •• •·•• ··· ·· ••·
º EVEREST º You can subscribe to Cyber Tech Help for as little as $5.00! subscribing. Help us help. What's the latest news? Check CTH News ......///\oo/\\\ |
![]() |
| Bookmarks |
«
Previous Topic
|
Next Topic
»
| Topic Tools | |
|
|
All times are GMT +1. The time now is 12:08 AM.
[
RSS ]









