![]() |
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-04 04:18 |
48,038 topics / 350,123 posts / today 0 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » vk: A question for you: |
| Printable Version 878 / 12 |
| Floor1 acme | Posted 2007-04-11 11:04 |
| 中级用户 Posts 98 Credits 238 From 陕西 | |
|
Yesterday I asked you about creating a folder named with the current date, and you pointed out: md specified path\ "%date%"
But now I've run into another problem: The format created with that command can't meet the requirement. The created format is: e:\ 2007\04\10 But what we need is: e:\2007-04-10 Is there still a way? Many, many thanks!!! |
|
| Floor2 doeasy2006 | Posted 2007-04-11 11:13 |
| 初级用户 Posts 31 Credits 66 From 天津市 | |
|
First!
|
|
| Floor3 acme | Posted 2007-04-11 11:18 |
| 中级用户 Posts 98 Credits 238 From 陕西 | |
|
You took the first reply, so help find an answer too.
|
|
| Floor4 bjsh | Posted 2007-04-11 11:25 |
| 银牌会员 Posts 621 Credits 2,000 | |
|
I've already posted the answer in that post of yours;
please don't post duplicate threads |
|
| Floor5 htysm | Posted 2007-04-11 11:28 |
| 高级用户 Posts 415 Credits 866 | |
|
@echo off
for /f "tokens=1-3 delims=\" %%i in ('echo %date:~5,10%') do md d:\%%i-%%j-%%k pause This was written according to your date format. |
|
| Floor6 doeasy2006 | Posted 2007-04-11 11:45 |
| 初级用户 Posts 31 Credits 66 From 天津市 | |
|
Post #3: Gou Cu——is sitting in the second reply really that uncomfortable?
|
|
| Floor7 acme | Posted 2007-04-11 11:54 |
| 中级用户 Posts 98 Credits 238 From 陕西 | |
|
So awesome...
|
|
| Floor8 doeasy2006 | Posted 2007-04-11 12:09 |
| 初级用户 Posts 31 Credits 66 From 天津市 | |
|
Since we know you're online, we haven't been rude——this thread is between you and vk: should we be replying?
|
|
| Floor9 acme | Posted 2007-04-11 12:21 |
| 中级用户 Posts 98 Credits 238 From 陕西 | |
|
That's not what I mean. Every friend who has helped me is a good friend of mine, so why bother about that?
|
|
| Floor10 doeasy2006 | Posted 2007-04-11 12:45 |
| 初级用户 Posts 31 Credits 66 From 天津市 | |
|
Glad to know you understand what we mean!
We don't mind what happened before! Thanks for your kind regards! I've seen this: http://www.cn-dos.net/forum/viewthread.php?tid=29404&fpage=1 Pursuing it relentlessly, clinging on stubbornly, squeezing out the very last drop of resources to get what one wants is also the spirit of PC FANS! May we share it together! |
|
| Floor11 acme | Posted 2007-04-11 12:53 |
| 中级用户 Posts 98 Credits 238 From 陕西 | |
|
Hearts in tune, may more DOS friends keep improving and succeed!
|
|
| Floor12 vk | Posted 2007-04-12 08:29 |
| 中级用户 Posts 86 Credits 218 | |
|
I can't think of any other way. My skills are limited, sorry!
|
|
| Floor13 acme | Posted 2007-04-13 08:54 |
| 中级用户 Posts 98 Credits 238 From 陕西 | |
|
Still, thank you!
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |