如何让批处理在后台运行而不弹出窗口,开机脚本除外
🖨 打印本页
标题:如何让批处理在后台运行而不弹出窗口,开机脚本除外
作者:yaoview | 时间:2008-07-09 14:27 | 标题:如何让批处理在后台运行而不弹出窗口,开机脚本除外
编了一个批处理,想在后台运行而不弹出窗口,利用开机脚本可以,但CPU占用太高,请问有没有什么命令可以不弹出窗口?谢谢!
作者:wjdidi | 时间:2008-07-09 15:02
下面这是以前收藏的论坛里的某位高手[具体不太记得了]的代码。。可以隐藏窗口
@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~fs0 h",0)(window.close)&&exit
:begin
rem 下边开始写批处代码了
作者:HAT | 时间:2008-07-09 15:14
作者:z2364003 | 时间:2008-08-09 15:59
学习了
作者:z2364003 | 时间:2008-08-09 16:01
批处理中的set后面跟的参数干什么用的,,
作者:z2364003 | 时间:2008-08-09 16:02
那里有甚而的批处理语名
作者:lxmxn | 时间:2008-08-09 19:56
Originally posted by z2364003 at 2008-8-9 16:02:
那里有甚而的批处理语名
现在很流行火星文?
作者:wafzaa | 时间:2008-08-16 20:49
···············顶啊···好帖子
作者:HAT | 时间:2008-08-16 21:36 | 标题:Re 5楼
自己先看看帮助
set /?
Two new switches have been added to the SET command:
SET /A expression
SET /P variable=
The /A switch specifies that the string to the right of the equal sign
is a numerical expression that is evaluated. The expression evaluator
is pretty simple and supports the following operations, in decreasing
order of precedence:
() - grouping
! ~ - - unary operators
* / % - arithmetic operators
+ - - arithmetic operators
<< >> - logical shift
& - bitwise and
^ - bitwise exclusive or
| - bitwise or
= *= /= %= += -= - assignment
&= ^= |= <<= >>=
, - expression separator
The /P switch allows you to set the value of a variable to a line of input
entered by the user. Displays the specified promptString before reading
the line of input. The promptString can be empty.
作者:tkmark | 时间:2009-04-08 15:27
不知道HAT版主的意思..
/P命令不是由用户输入参数的么?
你的意思是用符号可以实现隐藏运行的窗口?
不明白..我比较菜
作者:ligui0001 | 时间:2009-04-09 04:18
说明点
作者:hgj9999 | 时间:2009-04-09 05:07
真的可以实现吗?我学习一下
作者:prospy | 时间:2009-04-17 23:40
有点难搞懂
作者:welky | 时间:2009-04-24 10:53
来学习的!
作者:1405 | 时间:2009-04-26 01:52
我也想看一下
作者:1405 | 时间:2009-04-26 01:58
真的可以吗?
作者:1405 | 时间:2009-04-27 06:59
为什么我有的看不了?
作者:pingdan | 时间:2010-08-29 14:24
xie xie le
作者:lovebaby001 | 时间:2010-09-03 17:25
作者:vte8689 | 时间:2010-12-17 20:10
学习了。。。。
作者:517 | 时间:2010-12-31 18:14
来学习的!
来源:https://www.cn-dos.net/forum/viewthread.php?tid=41429 · 打印时间 2026-08-01 13:51