中国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-11 15:03
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » Question: How to use a batch file to start a program whose name contains spaces
Printable Version  789 / 3
Floor1 icydawn Posted 2009-03-05 12:41
初级用户 Posts 22 Credits 54
Here's an example!
//***********************************//
@echo off
start warkey.exe
start Frozen Thone.exe
//***********************************//
This code won't work; the second start doesn't recognize spaces.
Thanks!
Floor2 icydawn Posted 2009-03-05 12:52
初级用户 Posts 22 Credits 54
I'm really embarrassed. I didn't search carefully myself before bringing it out to ask. I'll try not to make this mistake again next time.
//***********************************//
@echo off
start warkey.exe
start “” “Frozen Thone.exe”
//***********************************//
Thanks to the old posts on the forum!!!!
Floor3 zerobin Posted 2009-03-06 03:27
新手上路 Posts 1 Credits 2
Hehe, I ran into this problem today too. I read a post on the forum, and HAT replied: if there are spaces in the path, you need to add quotes.
That really made me realize it at once!
Floor4 willing Posted 2009-03-07 00:17
中级用户 Posts 133 Credits 256
Looks like I'm not the only one who made this mistake, hehe....
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023