Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 7 批处理文件在Windows 7上不起作用_Windows 7_Batch File - Fatal编程技术网

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配置。但我想用批处理文件做同样的事情。我想没有批处理文件在我的系统上正常工作。