|
cad55
高级用户
   
积分 620
发帖 329
注册 2007-12-5
状态 离线
|
『楼 主』:
[求助]BAT调用EXE后,自身无法自动退出。
使用 LLM 解释/回答一下
请教:BAT调用EXE后,自身怎样自动退出。
Ask: After a BAT calls an EXE, how does it automatically exit by itself.
|
|
2008-8-27 11:12 |
|
|
huahua0919
银牌会员
    
积分 1608
发帖 780
注册 2007-10-7
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
start "" yourprogram.exe
start "" yourprogram.exe
|
|
2008-8-27 11:22 |
|
|
cad55
高级用户
   
积分 620
发帖 329
注册 2007-12-5
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
Originally posted by huahua0919 at 2008-8-27 11:22 AM:
start "" yourprogram.exe
俺有的是CALL
用START无法打开程序文件,,
俺的问题是,,打开程序文件后,,BAT就卡在哪里,它不自动退出。。
俺要它调后程序后,BAT自动退出(关闭)
Originally posted by huahua0919 at 2008-8-27 11:22 AM:
start "" yourprogram.exe
I have plenty of CALLs.
Using START cannot open the program file,,
My problem is that after opening the program file, the BAT gets stuck there and doesn't automatically exit.
I want it to automatically exit (close) the BAT after launching the program
|
|
2008-8-27 11:27 |
|
|
huahua0919
银牌会员
    
积分 1608
发帖 780
注册 2007-10-7
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
你有的是call啊
为什么说start不能够运行程序文件?
你看看这个程序能否执行\
start "" freecell
p是不是自动退出了
You have plenty of calls. Why does it say that start cannot run the program file? Let's see if this program can be executed. start "" freecell. Does the p automatically exit?
|
|
2008-8-27 11:35 |
|
|
cad55
高级用户
   
积分 620
发帖 329
注册 2007-12-5
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
Originally posted by huahua0919 at 2008-8-27 11:35 AM:
你有的是call啊
为什么说start不能够运行程序文件?
你看看这个程序能否执行\
start "" freecell
p是不是自动退出了
晕,,,哥们
start "" freecell是什么东东,,
它调出了XP的空档接龙。。。。。。。
BAT是自动退出
请解答一下。。
Last edited by cad55 on 2008-8-27 at 11:42 AM ]
Originally posted by huahua0919 at 2008-8-27 11:35 AM:
You have plenty of calls.
Why do you say that start can't run program files?
Let's see if this program can execute \
start "" freecell
Does the p automatically exit?
Dizzy, dude.
What is start "" freecell?
It brings up the freecell in XP...
The BAT automatically exits
Please give an explanation.
Last edited by cad55 on 2008-8-27 at 11:42 AM ]
|
|
2008-8-27 11:39 |
|
|
huahua0919
银牌会员
    
积分 1608
发帖 780
注册 2007-10-7
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
我也晕了, 如果你程序中有长文件名且有含空格文件的最好用短名调用!
I'm also confused. If there are long filenames and files with spaces in your program, it's best to call them using short names!
|
|
2008-8-27 11:42 |
|
|
cad55
高级用户
   
积分 620
发帖 329
注册 2007-12-5
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
start "" freecell是什么东东,,
它调出了XP的空档接龙。。。。。。。
BAT是自动退出
start "" freecell is what exactly, it brought up the FreeCell of XP......BAT is to exit automatically
|
|
2008-8-27 11:43 |
|
|
huahua0919
银牌会员
    
积分 1608
发帖 780
注册 2007-10-7
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
我只告诉你方法,其实意思都一样
I only tell you the method, in fact, the meaning is all the same
|
|
2008-8-27 11:44 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
CALL以后,批处理无法接着运行,只能用START。
你用START无法打开哪个程序?你的代码怎么写的?
After CALL, the batch processing cannot continue to run, and only START can be used. Which program can't you open with START? How did you write your code?
|

 |
|
2008-8-27 11:47 |
|
|
cad55
高级用户
   
积分 620
发帖 329
注册 2007-12-5
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
Originally posted by HAT at 2008-8-27 11:47 AM:
CALL以后,批处理无法接着运行,只能用START。
你用START无法打开哪个程序?你的代码怎么写的?
ren "C:\Documents and Settings\Administrator\My Documents\Adlm\a.dll" "%~n1a.rar"
ren "C:\Program Files\a\Sample\管理器.exe" "%~n1管理器.rar"
ren "C:\Program Files\a\Groups\Groups.dll" "%~n1Groups.rar"
ren "C:\Program Files\a\User\a.dll" "%~n1a.rar"
start regedit /s "%cd%\-.reg"
call "C:\Program Files\a\wnwb.exe"
当打开wnwb.exe(万能五笔)后,BAT就卡在哪里,不会自动退出。。。。
注:用
start "C:\Program Files\a\wnwb.exe"
无法调出
Last edited by cad55 on 2008-8-27 at 12:00 PM ]
Originally posted by HAT at 2008-8-27 11:47 AM:
After CALL, the batch processing cannot continue to run, and only START can be used.
Which program can't you open with START? How is your code written?
ren "C:\Documents and Settings\Administrator\My Documents\Adlm\a.dll" "%~n1a.rar"
ren "C:\Program Files\a\Sample\Manager.exe" "%~n1Manager.rar"
ren "C:\Program Files\a\Groups\Groups.dll" "%~n1Groups.rar"
ren "C:\Program Files\a\User\a.dll" "%~n1a.rar"
start regedit /s "%cd%\-.reg"
call "C:\Program Files\a\wnwb.exe"
After opening wnwb.exe (Universal Wubi), the BAT gets stuck there and doesn't exit automatically...
Note: Using
start "C:\Program Files\a\wnwb.exe"
cannot bring it up
Last edited by cad55 on 2008-8-27 at 12:00 PM ]
|
|
2008-8-27 11:59 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
start "万能5B" "C:\Program Files\a\wnwb.exe"
start "Universal 5B" "C:\Program Files\a\wnwb.exe"
|

S smile 微笑,L love 爱,O optimism 乐观,R relax 放松,E enthusiasm 热情...Slore |
|
2008-8-27 12:04 |
|
|
cad55
高级用户
   
积分 620
发帖 329
注册 2007-12-5
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
Originally posted by slore at 2008-8-27 12:04 PM:
start "万能5B" "C:\Program Files\a\wnwb.exe"
牛人,,,,,,可以了,,
谢谢。。。
请教,用START是这个公式吗
START “短名” +“程序路径”
Originally posted by slore at 2008-8-27 12:04 PM:
start "万能5B" "C:\Program Files\a\wnwb.exe"
Great minds... it works now
Thanks...
Asking, is this the formula for START?
START "short name" + "program path"
|
|
2008-8-27 12:10 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
START "标题" "程序路径"
多看帮助
start /?
START "标题" "程序路径"
Read more help
start /?
|

 |
|
2008-8-27 12:13 |
|
|
cad55
高级用户
   
积分 620
发帖 329
注册 2007-12-5
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
Originally posted by HAT at 2008-8-27 12:13 PM:
START "标题" "程序路径"
多看帮助
start /?
谢谢,,俺学BAT从来不看帮助(一看就有点晕),全是记别人写过的公式,
START,,才用。所以才有这样的事,,,,,
再次谢谢各位。。。。。。。。。
Originally posted by HAT at 2008-8-27 12:13 PM:
START "Title" "Program path"
Read the help more
start /?
Thank you, I never read the help when learning BAT (I get a little confused when I read it), I just remember the formulas written by others,
I just started using START. That's why there is such a thing,......
Thank you again......
|
|
2008-8-27 12:16 |
|
|
dslz666
中级用户
  
积分 233
发帖 117
注册 2007-11-28
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
注:用
start "C:\Program Files\a\wnwb.exe"
无法调出
回10楼兄弟
start 调用有空格的文件或者是路径有空格的这样写
start "" "C:\Program Files\a\wnwb.exe"
在start 后面多加一对双引号
Note: Using
start "C:\Program Files\a\wnwb.exe"
cannot bring up
Reply to the 10th-floor brother
When starting a file with spaces or a path with spaces, write it like this
start "" "C:\Program Files\a\wnwb.exe"
Add an extra pair of double quotes after start
|
|
2008-8-27 14:43 |
|