中国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-08 01:20
48,041 topics / 350,128 posts / today 3 new / 48,253 members
DOS批处理 & 脚本技术(批处理室) » How to delete irregular folders with dots...
Printable Version  2,928 / 16
Floor1 p1509101 Posted 2008-04-03 16:25
中级用户 Posts 103 Credits 206
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?
Floor2 plp626 Posted 2008-04-03 16:53
银牌会员 Posts 1,020 Credits 2,278
Click the search under the signature
Floor3 p1509101 Posted 2008-04-03 17:44
中级用户 Posts 103 Credits 206
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.
Floor4 slore Posted 2008-04-03 18:36
铂金会员 Posts 2,478 Credits 5,212
dsfsdf.dd daaad.dd reter.dd

The folder isn't irregular, right? You can delete it directly
Floor5 kghong Posted 2008-04-03 19:07
初级用户 Posts 13 Credits 26
The landlord goes to http://www.anqn.com/video/13/index.shtml to have a look
Floor6 kghong Posted 2008-04-03 19:22
初级用户 Posts 13 Credits 26
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.
Floor7 p1509101 Posted 2008-04-03 20:34
中级用户 Posts 103 Credits 206
“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: [Copy to clipboard]
--------------------------------------------------------------------------------

::Delete malformed directories in the current path
for /f "delims=" %%a in ('dir/ad/b^|findstr /e "\."') do rd /q/s "%%a.\"
CODE: [Copy to clipboard]
--------------------------------------------------------------------------------

::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: [Copy to clipboard]
--------------------------------------------------------------------------------

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·~

[[i] Last edited by p1509101 on 2008-4-3 at 09:08 PM [/i]]
Floor8 plp626 Posted 2008-04-03 20:39
银牌会员 Posts 1,020 Credits 2,278
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"!
Floor9 p1509101 Posted 2008-04-03 21:14
中级用户 Posts 103 Credits 206
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...
Floor10 slore Posted 2008-04-03 21:23
铂金会员 Posts 2,478 Credits 5,212
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
Floor11 plp626 Posted 2008-04-03 21:31
银牌会员 Posts 1,020 Credits 2,278
I'm sorry, I misunderstood.

Run the following code in the directory containing the.dd folder



To delete, change echo to rd/a /q /s
Use with caution.
Floor12 balinger Posted 2008-04-03 21:39
中级用户 Posts 115 Credits 356
@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
Floor13 Shinaterry Posted 2008-04-03 23:43
初级用户 Posts 51 Credits 97
re: plp626

I'm sorry. I made a mistake by accident..
Floor14 p1509101 Posted 2008-04-04 10:13
中级用户 Posts 103 Credits 206

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~~
Floor15 bat-zw Posted 2008-04-04 12:26
金牌会员 Posts 1,276 Credits 3,105
Note: d:\temp refers to the directory where folders with . are stored, please modify it correctly by yourself (use with caution!!!)


[ Last edited by zw19750516 on 2008-4-4 at 12:28 PM ]
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023