I am trying to execute a simple batch file with following contents..
我正在尝试执行一个包含以下内容的简单批处理文件。
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.
但是,除了命令提示符闪烁之外没有任何反应。暂停似乎没有任何影响。请帮忙。
1 个解决方案
#1
0
I believe you need to have administrator privileges to run ipconfig.
我相信您需要具有管理员权限才能运行ipconfig。
#1
0
I believe you need to have administrator privileges to run ipconfig.
我相信您需要具有管理员权限才能运行ipconfig。