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-06-30 17:53
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » This command prompts a syntax error, that's wrong! View 1,368 Replies 6
Original Poster Posted 2006-09-18 04:39 ·  中国 河南 南阳 联通
新手上路
Credits 17
Posts 7
Joined 2006-09-18 04:07
19-year member
UID 62921
Status Offline
Copy D:\游戏菜单\QQmenu.lnk C:\Documents and Settings\Administrator\桌面\
The syntax of the command is incorrect. Please help.
Floor 2 Posted 2006-09-18 04:50 ·  中国 广东 佛山 广东睿江科技有限公司
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
When the path contains spaces, you should enclose the path in quotes; otherwise, the command will treat the string after the space as a command parameter.
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 3 Posted 2006-09-18 05:07 ·  中国 广东 广州 番禺区 电信
新手上路
Credits 17
Posts 13
Joined 2006-09-06 13:27
19-year member
UID 61973
Status Offline
copy D:\游戏 menu\QQmenu.lnk C:\Docume~1\Administrator\Desktop\
In this way, or
copy D:\游戏 menu\QQmenu.lnk "C:\Documents and Settings\Administrator\Desktop\"
Try it!
Floor 4 Posted 2006-09-18 10:30 ·  中国 河南 南阳 社旗县 联通
新手上路
Credits 17
Posts 7
Joined 2006-09-18 04:07
19-year member
UID 62921
Status Offline
Okay, finally there's an answer.

Oh, I even forgot to say thank you, let's add it!

[ Last edited by yd3141128 on 2006-9-18 at 10:53 ]
Floor 5 Posted 2006-10-05 04:51 ·  中国 广东 深圳 联通
初级用户
Credits 26
Posts 8
Joined 2006-10-05 02:20
19-year member
UID 64560
Status Offline
Thank you, I also encountered the same problem. After reading your post, I suddenly became enlightened.
Floor 6 Posted 2006-10-05 05:32 ·  中国 湖南 娄底 电信
银牌会员
★★★
Credits 1,218
Posts 485
Joined 2006-07-21 21:24
19-year member
UID 58987
From 湖南.娄底
Status Offline
It seems that everyone has overlooked the issue of path spaces...
Floor 7 Posted 2006-10-05 05:43 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
I think it's good for the forum to make a FAQ for new users to consult

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'>"
Forum Jump: