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-12 19:37
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » How can I make this batch copy run successfully under XP? View 764 Replies 1
Original Poster Posted 2003-07-25 00:00 ·  中国 湖北 武汉 联通
初级用户
Credits 147
Posts 18
Joined 2003-07-11 00:00
23-year member
UID 6734
Gender Male
Status Offline
Operating system: WINDOWS XP SP1
A copy command like this:
xcopy %USERPROFILE%\Applic~1 d:\desktop\
The purpose is to copy the Application Data under the user's folder to D:\DESKTOP\
But when I run this program, it shows:
D:\>xcopy C:\Documents and Settings\柳世杀神\Applic~1 d:\desktop\
Invalid number of parameters
Later I found out it was because of the space in C:\Documents and Settings, but I have no way to set %USERPROFILE% to Docume~1 so that it becomes c:\docume~1\柳世杀神\applic~1 d:\desktop\, so if I want to achieve this function, what should I do?~
Floor 2 Posted 2003-07-26 00:00 ·  中国 浙江 宁波 电信
高级用户
★★
S
Credits 778
Posts 223
Joined 2003-05-10 00:00
23-year member
UID 1974
Gender Male
Status Offline
Forum Jump: