|
p1509101
中级用户
   海浪人生
积分 206
发帖 103
注册 2007-7-4
状态 离线
|
『楼 主』:
怎样删除不规则带点的文件夹....
使用 LLM 解释/回答一下
一朋友问我怎么删除带点的文件夹.. 不会搞
请教一下. 怎么样删除带点的文件夹
例 dsfsdf.dd daaad.dd reter.dd
要是是文件 就容易 处理 但是这样的文件夹请问该怎么在分区内搜索并删除呢??
A friend asked me how to delete folders with dots. I don't know how to do it. Let's ask. How to delete folders with dots? For example, dsfsdf.dd, daaad.dd, reter.dd. If it's a file, it's easy to handle, but how to search and delete such folders in the partition?
|
|
2008-4-3 16:25 |
|
|
plp626
银牌会员
     钻石会员
积分 2278
发帖 1020
注册 2007-11-19
状态 离线
|
|
2008-4-3 16:53 |
|
|
p1509101
中级用户
   海浪人生
积分 206
发帖 103
注册 2007-7-4
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
晕 我当然是搜索过了 找不到 才提问的~~
你没有测试 就不要以为很容易
Oh, I was really confused. Of course I've searched, but I couldn't find it, so I'm asking~ You didn't test it, so don't think it's easy.
|
|
2008-4-3 17:44 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
dsfsdf.dd daaad.dd reter.dd
文件夹不是不规则的吧?可以直接删除呀
dsfsdf.dd daaad.dd reter.dd
The folder isn't irregular, right? You can delete it directly
|
|
2008-4-3 18:36 |
|
|
kghong
初级用户
 
积分 26
发帖 13
注册 2006-9-24
状态 离线
|
|
2008-4-3 19:07 |
|
|
kghong
初级用户
 
积分 26
发帖 13
注册 2006-9-24
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
创建隐藏带点文件夹的方法
1.这个是前段时间讨论最多的“带点”的文件夹(目录)
貌似矮人工作室最先公开用的,其实很早就有了。
EXP:
创建:MD A..\
删除:RD A..\ /s (如果文件夹不为空时加上/s参数)
现在知道的情况是:
.这种文件夹在xp的命令行可以打开,2000不行。
Methods to create hidden folders with dots
1. This is the "folder (directory) with dots" that was discussed the most in the previous period
It seems that the Dwarf Studio was the first to publicly use it, actually it has been around for a long time.
EXP:
Create: MD A..\
Delete: RD A..\ /s (Add the /s parameter if the folder is not empty)
The current known situation is:
. Such folders can be opened in the command line of XP, but not in 2000.
|
|
2008-4-3 19:22 |
|
|
p1509101
中级用户
   海浪人生
积分 206
发帖 103
注册 2007-7-4
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
“晕~~ 删除不是难题~ 难得是要搜索这样的文件夹出来~~~
1千个 1万个呢? 你总不能不能叫我手动删吧
唯一的规律是后面.dd这样的文件夹。。。。。 ”这样叫发火?我说一千个手动不是累死了?一万个呢?都是手动删?
算了~~
CODE: [Copy to clipboard]
--------------------------------------------------------------------------------
::删当前路径下畸形目录
for /f "delims=" %%a in ('dir/ad/b^|findstr /e "\."') do rd /q/s "%%a.\"
CODE: [Copy to clipboard]
--------------------------------------------------------------------------------
::删当前路径下,包括子目录内的畸形目录
for /f "delims=" %%a in ('dir/ad/s/b^|findstr /e "\."') do rd /q/s "%%a.\"
-----------------------------------------------------------------
在目录树内 删空畸形目录 显示 非空畸形目录
CODE: [Copy to clipboard]
--------------------------------------------------------------------------------
for /f "delims=" %%a in ('dir/ad/s/b^|findstr /e "\."') do rd "%%a.\" 2>nul||echo %%a
这个是你的回答的吧。。。 很遗憾 不行~~不会改~~
@echo off
for /l %%a in (0 1 50) do rd /q /s "%userporfile%\桌面\%%a%%b..\" 2>nul
这个我就知道 0开始加1一直加到50 删掉01.. 02.. 这样的文件夹
但是我这个不是.. 而是.dd 前面又不是规则的~~
我也没有发很什么火。。。
但是我讨厌 没有看清楚 我说的问题 就回答 拿分了事。。。
我宁愿 没人 回答。。。 我宁愿自己搜索资料。。
看着回答的根本就是不是问的东西。。。 甚至说用手删就可以了。。
请教可以。。。 求人免谈·~ 不会跪求。裸求~~
如果版主看见觉得我口气很过分的话 可以扣分警告·~
[[i] Last edited by p1509101 on 2008-4-3 at 09:08 PM [/i]]
“Dizzy~~ Deleting is not a problem~~ The hard part is to search for such folders~~ ~~~
1,000 or 10,000? Can't you ask me to delete manually?
The only rule is folders ending with.dd... . . . "Is this called getting angry? I said deleting 1,000 manually would be tiring? What about 10,000? All manual deletion?
Forget it~ ~
CODE:
--------------------------------------------------------------------------------
::Delete malformed directories in the current path
for /f "delims=" %%a in ('dir/ad/b^|findstr /e "\."') do rd /q/s "%%a.\"
CODE:
--------------------------------------------------------------------------------
::Delete malformed directories in the current path, including subdirectories
for /f "delims=" %%a in ('dir/ad/s/b^|findstr /e "\."') do rd /q/s "%%a.\"
-----------------------------------------------------------------
Delete empty malformed directories in the directory tree and display non-empty malformed directories
CODE:
--------------------------------------------------------------------------------
for /f "delims=" %%a in ('dir/ad/s/b^|findstr /e "\."') do rd "%%a.\" 2>nul||echo %%a
This is your answer... Unfortunately, it doesn't work~ ~ Can't modify it~ ~
@echo off
for /l %%a in (0 1 50) do rd /q /s "%userporfile%\Desktop\%%a%%b..\" 2>nul
I know this is adding from 0 by 1 up to 50, deleting folders like 01.., 02..
But mine is not.., but.dd, and the front is not regular~ ~
I didn't get very angry...
But I hate not reading the question clearly and just answering to get points~ ~
I'd rather no one answers~ ~ I'd rather search for information by myself~ ~
Looking at the answers is根本 not what was asked... Even saying that manual deletion is okay.
Can ask for advice... Begging for help is out of the question·~ Won't kneel and beg. Naked begging~ ~
If the moderator sees that my tone is too excessive, you can deduct points and warn·~
Last edited by p1509101 on 2008-4-3 at 09:08 PM ]
|
|
2008-4-3 20:34 |
|
|
plp626
银牌会员
     钻石会员
积分 2278
发帖 1020
注册 2007-11-19
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
Originally posted by p1509101 at 2008-4-3 08:34 PM:
晕~~ 删除不是难题~ 难得是要搜索这样的文件夹出来~~~
1千个 1万个呢? 你总不能不能叫我手动删吧
唯一的规律是后面.dd这样的文件夹。。。。。
Originally posted by p1509101 at 2008-4-3 05:44 PM:
晕 我当然是搜索过了 找不到 才提问的~~
你没有测试 就不要以为很容易
注意语气啊, 你是寻求朋友的帮助,能回答的你首先的心存感激
请搜索 "批量删除"!
Originally posted by p1509101 at 2008-4-3 08:34 PM:
Wow~ Deleting isn't the problem~ The hard part is finding such folders to delete~ ~ ~
1,000 or 10,000? You can't expect me to delete them manually, right?
The only pattern is folders ending with.dd...
Originally posted by p1509101 at 2008-4-3 05:44 PM:
Wow, I did search, but couldn't find them, so I'm asking~
Don't think it's easy if you haven't tested it
Please be mindful of your tone. You're seeking help from friends, so be grateful if someone can answer.
Please search for "bulk delete"!
|

山外有山,人外有人;低调做人,努力做事。
进入网盘(各种工具)~~ 空间~~cmd学习 |
|
2008-4-3 20:39 |
|
|
p1509101
中级用户
   海浪人生
积分 206
发帖 103
注册 2007-7-4
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
请教可以。。。 求人免谈·~ 不会跪求。裸求~~
如果版主看见觉得我口气很过分的话 可以扣分警告·~
再说我也是帮别人而问的,不急于一时半会弄懂~~
谢谢 所有回答的朋友~~
这个贴 就不要回了~~ 当我没问过~~
还有希望你们以后回答别人的帖子 看清楚问题 再回答 这是对人的尊重。。。
Asking is okay... Don't beg for help·~ Won't kneel and beg. Naked begging~~
If the moderator sees that my tone is too excessive, you can deduct points and give a warning·~
Besides, I'm also asking for someone else, not in a hurry to understand it for a while~~
Thank you to all the friends who answered~~
Don't reply to this post~~ Consider I didn't ask~~
Also, I hope you will read the question clearly before answering others' posts in the future. This is respect for others...
|
|
2008-4-3 21:14 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
呵呵,总算明白了。
怎么说呢,这些文件夹不是不规则,规则你也说了是带.dd
虽然不知道你是怎么查文件的,但是如果你会那个是用dir的话,
文件夹很容易。。。
dir /s /b /d *.dd
Hehe, finally understand.
How to say, these folders are not irregular, you said the rule is to have.dd
Although I don't know how you check the files, but if you use dir for that,
folders are easy...
dir /s /b /d *.dd
|
|
2008-4-3 21:23 |
|
|
plp626
银牌会员
     钻石会员
积分 2278
发帖 1020
注册 2007-11-19
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
不好意思,我理解错了,
在含.dd文件夹的目录内运行下面代码
@echo off
for /d %%a in (*.dd) do echo 将删除 %%a
pause
删除请将echo 改为rd/a /q /s
请慎用.
I'm sorry, I misunderstood.
Run the following code in the directory containing the.dd folder
@echo off
for /d %%a in (*.dd) do echo The following will be deleted %%a
pause
To delete, change echo to rd/a /q /s
Use with caution.
|

山外有山,人外有人;低调做人,努力做事。
进入网盘(各种工具)~~ 空间~~cmd学习 |
|
2008-4-3 21:31 |
|
|
balinger
中级用户
  
积分 356
发帖 115
注册 2004-7-27
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
@echo off
for %%a in (c d e f g) do (
for /f "tokens=*" %%i in ('dir /s /ad /b %%a:\*.dd') do rd /s /q "%%i")
pause
@echo off
for %%a in (c d e f g) do (
for /f "tokens=*" %%i in ('dir /s /ad /b %%a:\*.dd') do rd /s /q "%%i")
pause
|
|
2008-4-3 21:39 |
|
|
Shinaterry
初级用户
 
积分 97
发帖 51
注册 2008-3-19
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
re: plp626
不好意思. 不小心弄错了..
re: plp626
I'm sorry. I made a mistake by accident..
|
|
2008-4-3 23:43 |
|
|
p1509101
中级用户
   海浪人生
积分 206
发帖 103
注册 2007-7-4
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
 
謝謝 兄弟 原來是/D ~~
開始我用 rd /s /q *.dd 不行~
反正謝謝 你們所有人的回答哦~~
:D:D
Thank you, brother. It turns out to be /D ~~
At first, I used rd /s /q *.dd which didn't work~
Anyway, thank you all for your answers oh~~
|
|
2008-4-4 10:13 |
|
|
bat-zw
金牌会员
      永远的学习者
积分 3105
发帖 1276
注册 2008-3-8
状态 离线
|
『第 15 楼』:
请慎用!!!
使用 LLM 解释/回答一下
注:d:\temp 是指要删除带.的文件夹存放的目录,请自行修改正确了(慎用!!!)
@echo off
for /f "delims=" %%i in ('dir /ad /b d:\temp ^| find "."') do (
rd /s /q d:\temp\%%i
)
Last edited by zw19750516 on 2008-4-4 at 12:28 PM ]
Note: d:\temp refers to the directory where folders with . are stored, please modify it correctly by yourself (use with caution!!!)
@echo off
for /f "delims=" %%i in ('dir /ad /b d:\temp ^| find "."') do (
rd /s /q d:\temp\%%i
)
Last edited by zw19750516 on 2008-4-4 at 12:28 PM ]
|

批处理之家新域名:www.bathome.net |
|
2008-4-4 12:26 |
|