P
P
partyzanx2018-11-14 11:57:45
Command line
partyzanx, 2018-11-14 11:57:45

How to delete files from a folder with the same items in the name?

I have a folder, there are 10000 files. It is necessary to delete files that have the "~" sign in their names.
How can I do this through the console?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2018-11-14
@tsklab

DEL *~* /Q
Doesn't work on Windows 10:

C:\Temp>DEL *~*
C:\Temp\aria-debug-10644.log
Процесс не может получить доступ
C:\Temp\~DF5C54CE55B6D3C54A.TMP

C:\Temp>DEL ~*
C:\Temp\~DF5C54CE55B6D3C54A.TMP
Отказано в доступе.

C:\Temp>DEL *~
Не удается найти C:\Temp\*~

This is because "short" names (8.3) contain a tilde.
This can be disabled (by default it is enabled only for the system partition).
From administrator
On Windows XP:
C:\Temp>del *~*
Не удается найти C:\Temp\*~*

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question