如何在运行批处理脚本时,最小化命令提示符? [英] how to minimize the command prompt when running a batch script?

查看:226
本文介绍了如何在运行批处理脚本时,最小化命令提示符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何最大限度地减少在命令提示符下在Windows中运行3.11批处理脚本是什么时候?

anybody know how to minimize the command prompt when running a batch script in Windows 3.11?

在Windows XP中,存在有一个命令

in Windows XP, there have a command

start /min start.bat 

要尽量减少的命令提示符,它是在MSDOS 6.22有similiar命令?

to minimize the cmd prompt, is it have similiar command in MSDos 6.22?

推荐答案

这个小批量code应该做你所需要的。

This little batch code should do what you need.

<一个href=\"http://zoombody.com/articles/run-a-batch-script-minimized\">http://zoombody.com/articles/run-a-batch-script-minimized

相关code则需要被放置在你的脚本的顶部:

The relevant code then needs to be placed at the top of your script:

if not "%minimized%"=="" goto :minimized
set minimized=true
start /min cmd /C "%~dpnx0"
goto :EOF
:minimized
rem Anything after here will run in a minimized window

这篇关于如何在运行批处理脚本时,最小化命令提示符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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