China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-02 01:29
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How do I handle using call to invoke a file whose name contains ()? View 1,307 Replies 8
Original Poster Posted 2006-08-17 08:56 ·  中国 广东 广州 电信
新手上路
Credits 18
Posts 5
Joined 2006-08-11 17:02
19-year member
UID 60329
Gender Male
Status Offline
As the title says, for example: call c:\ Instructions(August).doc — since () can't be handled this way, what should I do?
Floor 2 Posted 2006-08-17 09:01 ·  中国 四川 成都 鹏博士宽带
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
  call c:\ Instructions^(August^).doc

  But can a .doc file be invoked with call? Shouldn't it only be opened with the start command?
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 3 Posted 2006-08-17 09:11 ·  中国 北京 联通
银牌会员
★★★
DOS联盟捡破烂的
Credits 1,144
Posts 425
Joined 2005-10-20 00:00
20-year member
UID 43784
From 北京
Status Offline
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.........
Floor 4 Posted 2006-08-17 09:46 ·  中国 辽宁 锦州 中移铁通
荣誉版主
★★★
Credits 1,338
Posts 356
Joined 2005-07-15 12:09
21-year member
UID 40733
Gender Male
Status Offline
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"
  ☆开始\运行 (WIN+R)☆
%ComSpec% /cset,=何奈无── 。何奈可无是原,事奈无做人奈无&for,/l,%i,in,(22,-1,0)do,@call,set/p= %,:~%i,1%<nul&ping/n 1 127.1>nul

Floor 5 Posted 2006-08-17 16:35 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
So call turns out to be the same as start after all ah~~ learned something

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 6 Posted 2006-08-18 10:40 ·  中国 山西 运城 移动
中级用户
★★
Credits 241
Posts 131
Joined 2005-09-28 19:01
20-year member
UID 42920
Gender Male
Status Offline
In systems above 2000, call can replace start! But under 98, I don't know whether it works! Haven't tried it!
房东说:这娃是个好孩子!
Floor 7 Posted 2006-08-18 14:04 ·  中国 辽宁 大连 教育网
中级用户
★★
DOS之友
Credits 332
Posts 168
Joined 2005-10-06 00:00
20-year member
UID 43171
Gender Male
From 天涯
Status Offline
Oh, so call also has the function of start. Learned something.
测试环境: windows xp pro sp2 高手是这样炼成的:C:\WINDOWS\Help\ntcmds.chm
Floor 8 Posted 2006-08-18 15:18 ·  中国 广东 广州 电信
新手上路
Credits 18
Posts 5
Joined 2006-08-11 17:02
19-year member
UID 60329
Gender Male
Status Offline
Thanks, fellow enthusiasts.
Floor 9 Posted 2006-08-19 13:08 ·  中国 江苏 苏州 电信
初级用户
★★
Credits 160
Posts 75
Joined 2006-06-28 01:07
20-year member
UID 57661
Gender Male
Status Offline
Hehe, really?
Then my trip here wasn't for nothing after all
Hehe
Forum Jump: