ECHO OFF
::CMD will no longer show us what command it’s executing(cleaner)
ECHO As a network admin, I’m getting tired of having to type these commands in!
:: Print some text
IPCONFIG /ALL
:: Outputs tons of network information into the command prompt
PAUSE
:: Lets the user read the important network information
PING www.google.com
:: Ping google to figure out if we’ve got internet!
ECHO All done pinging Google.
::Print some text
PAUSE

But, nothing happens except a flash of command prompt. PAUSE does not seem to have any effect. Please help.

Can you confirm that the IPCONFIG bit in your script is not actually another batch script which happens to have the same name as the IPCONFIG command and which is accessible to your script just by the name?
–
Andriy MFeb 7 '12 at 19:32

just as a side note, you could try sysinternals bginfo - great tool for any support desk
–
wmzFeb 7 '12 at 20:08

@AndriyM.. I cross checked...There is no other batch file named as IPCONFIG..
–
user1195365Feb 8 '12 at 5:22

1

Can you get the script to pause before ipconfig, to see if thats whats causing the problem.
–
Bali CFeb 8 '12 at 10:38

What happens if you open a CMD prompt and then run your batch file?
–
aphoriaFeb 8 '12 at 16:03

1 Answer
1

I have admin privileges as i can easily run IP config through command prompt. But the same thing I want to do using batch file. I guess no batch file is working properly on my system.
–
user1195365Feb 8 '12 at 5:17