中国DOS联盟论坛

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-10 05:45
47,811 topics / 349,897 posts / today 2 new / 48,255 members
DOS批处理 & 脚本技术(批处理室) » [Solved] What should be used to replace DOS spaces?
Printable Version  2,037 / 9
Floor1 itsky8 Posted 2007-12-09 02:14
初级用户 Posts 6 Credits 20
Why is it not allowed to use mkdir to create my folder in Batch? Spaces are not allowed. Then, if you must create a folder with a space, what should be added in the middle? For example, mkdir c:\my folder, changing it to mkdir c:\my%folder doesn't seem to work. What exactly should be placed?

[ Last edited by HAT on 2008-10-27 at 13:21 ]
Floor2 lxmxn Posted 2007-12-09 04:07
版主 Posts 4,938 Credits 11,386
Add double quotes in English on both sides.

mkdir "c:\my folder"
Floor3 longrun1978 Posted 2007-12-10 11:22
新手上路 Posts 1 Credits 2
Learning
Floor4 uouobb Posted 2007-12-15 14:43
初级用户 Posts 37 Credits 82
Floor5 fastslz Posted 2007-12-15 15:22
铂金会员 Posts 2,315 Credits 5,493 From 上海
Originally posted by uouobb at 2007-12-16 14:43:
Any other methods??
??

Good question, let's see if Gates can make a concession
Floor6 ymqq2003 Posted 2008-10-27 13:17
新手上路 Posts 23 Credits 18
Why can't the command `net share ud$="C:\Documents and Settings\Administrator\桌面"` be executed?
Floor7 yishanju Posted 2008-10-27 13:20
银牌会员 Posts 1,357 Credits 1,488
C:\WINDOWS\system32>net share ud$="C:\Documents and Settings\Administrator\桌面"

The share ud$ was successful.
Floor8 ymqq2003 Posted 2008-10-27 13:21
新手上路 Posts 23 Credits 18
I can't execute in the batch file?

Wait, no, the correct translation should be: I can't execute in the batch file? No, that's not right. Let's do it again.

The correct translation is: I can't execute within the batch file? No, that's wrong. Wait, let's start over.

The user's input is "我在批处理文件中无法执行?" The correct English translation is "I can't execute within the batch file?" But that doesn't seem right. Wait, maybe I made a mistake. Let's do it properly.

"I can't execute within the batch file?" No, that's not correct. Wait, the correct translation is "I am unable to execute within the batch file?" Yes, that's better.
I am unable to execute within the batch file?
Floor9 yishanju Posted 2008-10-27 13:27
银牌会员 Posts 1,357 Credits 1,488
Add a PAUSE at the end of the batch, then run it and see what the prompt is, and post it here. If convenient, paste the code here.
Floor10 LoveSpring Posted 2008-10-27 15:23
新手上路 Posts 1 Credits 1
Got it, thanks!
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023