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-26 12:53
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » How to use the CD command to enter a subdirectory with a space in the directory name? View 1,787 Replies 6
Original Poster Posted 2003-08-13 00:00 ·  中国 山东 济宁 联通
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
Is there any way without using other software such as DosShell, NC, etc.
简单就是美
Floor 2 Posted 2003-08-13 00:00 ·  中国 香港 有线电视
管理员
★★★★
專業島民
Credits 4,869
Posts 1,633
Joined 2002-12-10 00:00
23-year member
UID 465
Gender Male
Status Offline
Here's the translation:
Here's an example...
Example:
cd "Program Files"
我的網站:http://mw16.2ya.com/ 我的網誌: http://scrappedblog.blogspot.com/
~
我的Winamp正在播放的歌曲:
Floor 3 Posted 2003-08-13 00:00 ·  中国 山东 济宁 联通
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
That's simple, thank you!
简单就是美
Floor 4 Posted 2003-08-20 00:00 ·  中国 山东 济南 联通
初级用户
Credits 150
Posts 10
Joined 2003-08-20 00:00
22-year member
UID 8931
Gender Female
Status Offline
Press "alt" and enter 255, which is a space
Or use input redirection.
Floor 5 Posted 2003-08-20 00:00 ·  中国 湖北 武汉 联通
银牌会员
★★★
Credits 1,681
Posts 512
Joined 2003-08-02 00:00
22-year member
UID 7953
Gender Male
Status Offline
Hold down "alt" and type 255. It won't work unless the directory name is like this.
Somehow somewhere I've got to choose.
No matter if it is win or lose.
Floor 6 Posted 2003-08-20 00:00 ·  中国 安徽 滁州 天长市 电信
银牌会员
★★★
Credits 1,833
Posts 648
Joined 2002-11-08 00:00
23-year member
UID 197
Gender Male
Status Offline
Just press the space bar directly for entering a space. If you have to use Alt, it should be Alt+32.

Another way to enter a directory with a space: C:\>dir /w

Volume in drive C has no label
Volume Serial Number is 1807-1ADF
Directory of C:\

COMMAND.COM NETLOG.TXT AUTOEXEC.BAT CONFIG.SYS
PDOS.DEF SCANDISK.LOG
COMMAND.PIF MIR.INI
8 file(s) 147,021 bytes
5 dir(s) 4,498.12 MB free

C:\>cd progra~1

C:\Program Files>

That's OK
Floor 7 Posted 2003-08-20 00:00 ·  美国
初级用户
Credits 128
Posts 8
Joined 2003-08-18 00:00
22-year member
UID 8783
Gender Male
Status Offline
Beneficial, thank you everyone!
Forum Jump: