作者:yc1998 | 时间:2008-03-25 15:30 | 标题:运行bat的Msgbox,我不想弹出提示符,如何做
@echo off
echo intAnswer = Msgbox("提示:****!", vbExclamation , "标题")>%Temp%\Temp.vbs
%Temp%\Temp.vbs
运行上面的bat,我只让批处理弹出对话框,但我不想弹出dos提示符,如何做呢?
(注:vb 的shell来运行cmd命令,可以另提示符不显示)
作者:knoppix7 | 时间:2008-03-25 18:56
不可能
弄成VBS不就可以了,干吗一定要用BAT.
作者:HAT | 时间:2008-03-25 19:05
不知这个思路能否满足楼主需求
@echo off&&mode con cols=15 lines=1
%1 %2
start /min /i "" "%~nx0" goto min&&goto :eof
:min
echo xxx
pause>nul
exit
作者:learner0 | 时间:2008-03-26 12:13
去掉%1 %2,hat兄的这个代码蛮强横啊,一下子占满了整个任务栏。。。。。。。。
haha,Please try it!
@echo off&&mode con cols=15 lines=1
start /min /i "" "%~nx0" goto min&&goto :eof
:min
echo xxx
pause>nul
exit
Or like this:
@echo off&&mode con cols=15 lines=1
%1 %2
start /min /i "" "%~nx0"&goto min&&goto :eof
:min
echo xxx
pause>nul
exit
[ Last edited by learner0 on 2008-3-26 at 12:21 PM ]