简体   繁体   English

从批处理文件在Windows中创建多个目录

[英]Make Multiple Directories in Windows From Batch File

I would like to change the following batch file to use spaces instead of underscores. 我想将以下批处理文件更改为使用空格而不是下划线。 However, when I do that the directories come out weird. 但是,当我这样做时,目录出来很奇怪。 I've tried using quotation marks, but they come out wrong. 我尝试使用引号,但它们出了错。

md Sample_sample
md Sample_sample\sample
md Sample_sample\sample2
md Sample_sample3
md Sample_sample2
md Sample_sample\sample\sample

PS. PS。 This is for the purposes of building a folder structure in GroupWise in a proxy folder so files can be archived from multiple accounts. 这是为了在GroupWise中在代理文件夹中构建文件夹结构,以便可以从多个帐户中存档文件。 If anybody know's how to make a large number of folders as above in GroupWise 7.0 on a proxy account and in a corporate security environment please let me know. 如果有人知道如何在GroupWise 7.0中通过代理帐户以及在公司安全环境中创建大量上述文件夹,请告诉我。

Using double quotes works fine. 使用双引号可以正常工作。 Tested on Windows 7: 在Windows 7上测试:

md "Special Dietary Foods\Infant Formula and Food"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM