Windows 7 批处理文件在Windows 7上不起作用
我正在尝试执行一个包含以下内容的简单批处理文件Windows 7 批处理文件在Windows 7上不起作用,windows-7,batch-file,Windows 7,Batch File,我正在尝试执行一个包含以下内容的简单批处理文件 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 netw
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
但是,除了命令提示符的闪烁外,什么也没有发生。停顿似乎没有任何效果。请提供帮助。我认为您需要具有管理员权限才能运行ipconfig。您能否确认脚本中的
ipconfig
位实际上不是另一个批处理脚本,该批处理脚本与ipconfig
命令具有相同的名称,并且您的脚本可以通过名称访问该批处理脚本?请注意,您可以尝试-任何支持的伟大工具desk@AndriyM.. 我反复检查了…没有其他名为IPCONFIG的批处理文件..能否让脚本在IPCONFIG
之前暂停,以查看这是否是导致问题的原因。如果打开CMD提示符,然后运行批处理文件,会发生什么情况?我有管理员权限,因为我可以通过命令提示符轻松运行IP配置。但我想用批处理文件做同样的事情。我想没有批处理文件在我的系统上正常工作。