|
eech
高级用户
   
积分 906
发帖 346
注册 2006-7-10
状态 离线
|
『楼 主』:
求助: 新建一个文件夹的批处理
使用 LLM 解释/回答一下
每次新建一个文件夹总要在桌面点右键.新建-文件夹.如果有这个批处理就好了.不知是不是一个幻想.请高手解答.期盼中
像这样就好了
现在大家明白我的意思了吧.我的批处理文件的快捷方式在点击后只能在F根目录下新建一个文件夹.因为我在F盘根目录下将它的快捷方式添加到左侧.如何才能在任意文件夹下新建.比如"变量什么的?"嘿嘿.我是菜鸟.很难说的清楚
Last edited by eech on 2006-11-12 at 12:44 AM ]
Every time I create a new folder, I always have to right-click on the desktop, select "New - Folder". It would be great if there was such a batch script. I don't know if it's just a fantasy. Please, experts, give me an answer. I'm looking forward to it.
Like this would be fine.
Now everyone understands what I mean. The shortcut of my batch file can only create a new folder in the root directory of drive F after I click it. Because I added its shortcut to the left in the root directory of drive F. How can I create it in any folder, like "variables or something?" Hehe. I'm a newbie. It's really hard to explain clearly.
Last edited by eech on 2006-11-12 at 12:44 AM ]
|
|
2006-11-11 11:35 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
|
2006-11-11 14:38 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
呵呵,lxmxn 忽略了文件夹名带空格的情况, md "文件夹名" 就更完美了。
Hehe, lxmxn ignored the situation where the folder name has spaces. It would be even better if it were `md "folder name"`.
|

尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。 |
|
2006-11-11 20:52 |
|
|
ccwan
金牌会员
     
积分 2725
发帖 1160
注册 2006-9-23 来自 河北廊坊
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
精益求精。
小问题也不放过。
Strive for excellence. Don't let small issues pass.
|

三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。 |
|
2006-11-11 23:22 |
|
|
maya0su
中级用户
  
积分 241
发帖 131
注册 2005-9-28
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
我觉得这样更完美
md c:\docume~1\%username%\桌面\"%date%"
或者
md c:\docume~1\"all users"\桌面\"%date%"
就更完美了 不仅建文件夹了,文件夹的名字还是当天的日期跟星期几
(PS:有的机子可能不显示星期几)
当有这样一个疑问
%userprofile%这个变量,在你CD %userprofile%能够进入
C:\Documents and Settings\%username%\这个目录
但是在新建文件夹时,这个变量却无法引用,何故?
望高人解释....期盼不已....
I think this is more perfect
md c:\docume~1\%username%\Desktop\"%date%"
Or
md c:\docume~1\"all users"\Desktop\"%date%"
It's even more perfect. Not only does it create a folder, but the folder's name is also the current date and the day of the week
(PS: On some machines, the day of the week may not be displayed)
When there is such a question
The %userprofile% variable can enter C:\Documents and Settings\%username%\ when you CD %userprofile%
But this variable cannot be referenced when creating a new folder. Why?
Hope an expert can explain.... Looking forward to it....
|

房东说:这娃是个好孩子! |
|
2006-11-12 00:06 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
新建文件夹的时候无法引用 %userprofile% 这个变量?不会吧。要么是你没用引号括起来,要么就是你的文件夹名含有非法字符而创建失败,导致你错误地认为是不能引用 %userprofile% 这个变量。
When creating a new folder, you can't reference the %userprofile% variable? No way. Either you didn't enclose it in quotes, or your folder name contains illegal characters and the creation fails, causing you to mistakenly think that you can't reference the %userprofile% variable.
|

尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。 |
|
2006-11-12 00:16 |
|
|
eech
高级用户
   
积分 906
发帖 346
注册 2006-7-10
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
我拷.I服了YOU你们.真有东西啊.嘿嘿
Wow, I really admire you all. There's really something here. Hehe
|
|
2006-11-12 00:22 |
|
|
eech
高级用户
   
积分 906
发帖 346
注册 2006-7-10
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
大侠们.有一个问题.我要的是可以在任意地方.目录下新建文件夹
Great experts, there is a problem. What I want is to be able to create a new folder in any place and directory.
|
|
2006-11-12 00:23 |
|
|
ccwan
金牌会员
     
积分 2725
发帖 1160
注册 2006-9-23 来自 河北廊坊
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
批处理文件放在哪里就可以在当前路径创建文件夹。
除非你想在每个文件夹下创建,好像病毒^_^
Where should I put the batch file so that I can create a folder in the current path. Unless you want to create it under each folder, it seems like a virus ^_^
|

三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。 |
|
2006-11-12 00:26 |
|
|
eech
高级用户
   
积分 906
发帖 346
注册 2006-7-10
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
各位朋友.把我的顾虑说出来.我希望的是将新建文件夹的快捷方式放在快速启动栏.
比如我在E盘.那么点击这个批处理.是在什么地方新建一个快捷方式呢?
能不能做到在我当前的目录下新建一个文件夹呢?
就像这个一样
Last edited by eech on 2006-11-12 at 12:34 AM ]
Friends, let's voice my concerns. What I hope for is to place the shortcut of the newly created folder in the Quick Launch bar.
For example, if I'm on the E drive, then when I click this batch file, where is the shortcut newly created?
Can it be done to newly create a folder in my current directory?
Last edited by eech on 2006-11-12 at 12:34 AM ]
|
|
2006-11-12 00:29 |
|
|
ccwan
金牌会员
     
积分 2725
发帖 1160
注册 2006-9-23 来自 河北廊坊
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
Originally posted by eech at 2006-11-12 00:29:
各位朋友.把我的顾虑说出来.我希望的是将新建文件夹的快捷方式放在快速启动栏.
比如我在E盘.那么点击这个批处理.是在什么地方新建一个快捷方堮..
我糊涂了。
若将新建文件夹的快捷方式放在快速启动栏,和右键-新建-文件夹
在方便程度上有什么区别?
“每次新建一个文件夹总要在桌面点右键.新建-文件夹.如果有这个批处理就好了.不知是不是一个幻想.请高手解答.期盼中”
以上是你的要求吧?
Originally posted by eech at 2006-11-12 00:29:
Friends, let me express my concerns. What I hope is to place the shortcut of the newly created folder in the Quick Launch bar.
For example, if I am on drive E, then clicking this batch file, where will a new shortcut be created..
I'm confused.
What is the difference in convenience between placing the shortcut of the newly created folder in the Quick Launch bar and right-clicking on the desktop - New - Folder?
"The new folder has to be right-clicked on the desktop every time to create a new one. If there is this batch file, it would be great. I don't know if it's a fantasy. Please ask experts to answer. Looking forward to it"
Is the above your requirement?
|

三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。 |
|
2006-11-12 00:35 |
|
|
ccwan
金牌会员
     
积分 2725
发帖 1160
注册 2006-9-23 来自 河北廊坊
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
你的图片来得好及时!我刚发完它就到了。呵呵
Your picture came just in time! I just posted it and it arrived right away. Hehe
|

三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。 |
|
2006-11-12 00:36 |
|
|
eech
高级用户
   
积分 906
发帖 346
注册 2006-7-10
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
那我的批处理文件放哪?
Then where should I put my batch file?
|
|
2006-11-12 00:36 |
|
|
ccwan
金牌会员
     
积分 2725
发帖 1160
注册 2006-9-23 来自 河北廊坊
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
你的windowsxp中有这功能啊!还干嘛?
Your Windows XP has this function! Why do you still do that?
|

三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。 |
|
2006-11-12 00:39 |
|
|
maya0su
中级用户
  
积分 241
发帖 131
注册 2005-9-28
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
RE:namejm
对于%userprofile%我确实忘记加"",而导致无法新建文件夹的问题
谢谢你的提醒,让我明白"",的 作用确实大!
呵呵……
RE:namejm
For the %userprofile% I did forget to add "", which led to the problem of not being able to create a new folder.
Thank you for your reminder, which made me understand that the role of "" is indeed great!
Hehe...
|

房东说:这娃是个好孩子! |
|
2006-11-13 04:21 |
|