![]() |
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-16 01:48 |
47,813 topics / 349,903 posts / today 1 new / 48,258 members |
| DOS疑难解答 & 问题讨论 (解答室) » How to use the CD command to enter a subdirectory with a space in the directory name? |
| Printable Version 1,850 / 6 |
| Floor1 Michael | Posted 2003-08-13 00:00 |
| 钻石会员 Posts 3,041 Credits 10,056 | |
|
Is there any way without using other software such as DosShell, NC, etc.
|
|
| Floor2 Roy | Posted 2003-08-13 00:00 |
| 管理员 Posts 1,633 Credits 4,869 | |
|
Here's the translation:
Here's an example... Example: cd "Program Files" |
|
| Floor3 Michael | Posted 2003-08-13 00:00 |
| 钻石会员 Posts 3,041 Credits 10,056 | |
|
That's simple, thank you!
|
|
| Floor4 200216 | Posted 2003-08-20 00:00 |
| 初级用户 Posts 10 Credits 150 | |
|
Press "alt" and enter 255, which is a space
Or use input redirection. |
|
| Floor5 iceboy | Posted 2003-08-20 00:00 |
| 银牌会员 Posts 512 Credits 1,681 | |
|
Hold down "alt" and type 255. It won't work unless the directory name is like this.
|
|
| Floor6 LanE | Posted 2003-08-20 00:00 |
| 银牌会员 Posts 648 Credits 1,835 | |
|
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 ![]() |
|
| Floor7 shen2k3 | Posted 2003-08-20 00:00 |
| 初级用户 Posts 8 Credits 128 | |
|
Beneficial, thank you everyone!
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |