中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-09 15:40
47,811 topics / 349,896 posts / today 1 new / 48,254 members
DOS批处理 & 脚本技术(批处理室) » [Help] After the BAT calls the EXE, it cannot automatically exit by itself.
Printable Version  3,165 / 15
Floor1 cad55 Posted 2008-08-27 11:12
高级用户 Posts 329 Credits 620
Ask: After a BAT calls an EXE, how does it automatically exit by itself.
Floor2 huahua0919 Posted 2008-08-27 11:22
银牌会员 Posts 780 Credits 1,608
start "" yourprogram.exe
Floor3 cad55 Posted 2008-08-27 11:27
高级用户 Posts 329 Credits 620
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
Floor4 huahua0919 Posted 2008-08-27 11:35
银牌会员 Posts 780 Credits 1,608
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?
Floor5 cad55 Posted 2008-08-27 11:39
高级用户 Posts 329 Credits 620
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 ]
Floor6 huahua0919 Posted 2008-08-27 11:42
银牌会员 Posts 780 Credits 1,608
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!
Floor7 cad55 Posted 2008-08-27 11:43
高级用户 Posts 329 Credits 620
start "" freecell is what exactly, it brought up the FreeCell of XP......BAT is to exit automatically
Floor8 huahua0919 Posted 2008-08-27 11:44
银牌会员 Posts 780 Credits 1,608
I only tell you the method, in fact, the meaning is all the same
Floor9 HAT Posted 2008-08-27 11:47
版主 Posts 5,017 Credits 9,023
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?
Floor10 cad55 Posted 2008-08-27 11:59
高级用户 Posts 329 Credits 620
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 ]
Floor11 slore Posted 2008-08-27 12:04
铂金会员 Posts 2,478 Credits 5,212
start "Universal 5B" "C:\Program Files\a\wnwb.exe"
Floor12 cad55 Posted 2008-08-27 12:10
高级用户 Posts 329 Credits 620
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"
Floor13 HAT Posted 2008-08-27 12:13
版主 Posts 5,017 Credits 9,023
START "标题" "程序路径"
Read more help
start /?
Floor14 cad55 Posted 2008-08-27 12:16
高级用户 Posts 329 Credits 620
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......
Floor15 dslz666 Posted 2008-08-27 14:43
中级用户 Posts 117 Credits 233
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
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023