中国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-02 02:26
48,037 topics / 350,122 posts / today 2 new / 48,250 members
DOS批处理 & 脚本技术(批处理室) » How do I handle using call to invoke a file whose name contains ()?
Printable Version  1,308 / 8
Floor1 zd264 Posted 2006-08-17 08:56
新手上路 Posts 5 Credits 18
As the title says, for example: call c:\ Instructions(August).doc — since () can't be handled this way, what should I do?
Floor2 namejm Posted 2006-08-17 09:01
荣誉版主 Posts 1,737 Credits 5,226 From 成都
  call c:\ Instructions^(August^).doc

  But can a .doc file be invoked with call? Shouldn't it only be opened with the start command?
Floor3 bagpipe Posted 2006-08-17 09:11
银牌会员 Posts 425 Credits 1,144 From 北京
call in a batch file is only used to call external batch programs, internal commands, internal subroutines, etc......... I'll add a little chatter too, nothing to do.........
Floor4 无奈何 Posted 2006-08-17 09:46
荣誉版主 Posts 356 Credits 1,338
When call and start invoke a non-executable file, they will launch the associated program to open the file.
The usual way is to wrap the filename in double quotes: call "c:\ Instructions(August).doc"
Floor5 electronixtar Posted 2006-08-17 16:35
铂金会员 Posts 2,672 Credits 7,493
So call turns out to be the same as start after all ah~~ learned something
Floor6 maya0su Posted 2006-08-18 10:40
中级用户 Posts 131 Credits 241
In systems above 2000, call can replace start! But under 98, I don't know whether it works! Haven't tried it!
Floor7 IceCrack Posted 2006-08-18 14:04
中级用户 Posts 168 Credits 332 From 天涯
Oh, so call also has the function of start. Learned something.
Floor8 zd264 Posted 2006-08-18 15:18
新手上路 Posts 5 Credits 18
Thanks, fellow enthusiasts.
Floor9 buddiyar Posted 2006-08-19 13:08
初级用户 Posts 75 Credits 160
Hehe, really?
Then my trip here wasn't for nothing after all
Hehe
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023