批处理文件命令暂停不起作用 [英] Batch file command PAUSE does not work

查看:233
本文介绍了批处理文件命令暂停不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建一个简单的批处理文件,以协助一些事情,我也曾经打印过的好,我希望用户退出之前看到一些说明。目前,在窗口关闭速度非常快。所以我加了暂停在文件的结尾,但它不想工作。

I am creating a simple batch file to assist in a few things, and I have some instructions that it prints out as well that I want the user to see before exit. Currently, the window closes very quickly. So I added PAUSE at the end of the file, but it does not want to work.

我看着上的其他问题,并检查,以确保该行结束 CRLF 和我有 CRLF 在文件的结尾。

I looked at other questions on SO and have checked to make sure the line endings are CRLF and that I have CRLF at the end of the file.

有什么建议?

推荐答案

是否暂停前的最后一个命令执行成功?介意分享你的脚本? - 至少过去几年命令

Does the last command before pause execute successfully? Mind sharing your script - at least last few commands?

另外,因为你似乎可以用Windows7的尝试超时命令,看看是否能正常工作。

Alternatively, since you seem to be using Windows7, try Timeout command and see if that is working.

这篇关于批处理文件命令暂停不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆