如何$控制台的对$ pvent自动关闭批处理文件执行之后。 [英] How to prevent auto-closing of console after the execution of batch file.

查看:132
本文介绍了如何$控制台的对$ pvent自动关闭批处理文件执行之后。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我,到文件的执行后放什么命令在一个批处理文件,控制台的prevent自动闭合的结束?

Can someone tell me, what command to put at the end of a batch file to prevent auto-closing of console after the execution of file?

推荐答案

在Windows / DOS批处理文件:

In Windows/DOS batch files:

pause

这将打印一个不错的preSS任意键继续。的消息

This prints a nice "Press any key to continue . . . " message

或者,如果你不想让。preSS任意键继续。消息,这样做,而不是:

Or, if you don't want the "Press any key to continue . . ." message, do this instead:

pause >nul

这篇关于如何$控制台的对$ pvent自动关闭批处理文件执行之后。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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