Help delete undeleted bat

Cannot Delete a File or Folder? Delete Undeletable Files in 5 Ways

Help delete undeleted bat

I was deleting some unnecessary junk files and folders on my Windows computer. But somehow, my computer won't let me delete a file. How do I force delete a file on my computer? Thanks!

It is said that the administrator has access to all the operations of the computer. However, there are certain things in which even an administrator faces a problem and hence it can be very frustrating.

For example, a file or folder cannot be deleted, the case. How to delete undeletable files? In this post, we will cover the reasons for and 5 ways of force deleting file and folder in Windows.

Undeletable files are generally spyware, malware, adware, or Trojan files. They are also normal files that are currently being used by the system and hence prevent them from being deleted. How do you know if the files are undeletable? The following messages are the signs of the undeletable, and also show the reasons.

  1. Cannot delete file: Access is denied.
  2. The file or folder is open in another program or user.
  3. The source or destination of the file may be in use.
  4. There has been a sharing violation.
  5. Make sure the disk is not full or write-protected and that the file is currently not in use.

Once you get these messages, files can’t be deleted by simply pressing the Delete button, no matter how many times you try. That's why you have to force delete the files and folders. How do I force delete a file and folder? 5 Ways are introduced in the following sections.

Solution 1. Close the folder or file and try again

If you get the message showing that “The action can't be completed because a folder or a file in it is open in another program”, you can delete the file or folder after following the below steps.

To close a file, folder, or an app, there are 2 ways that can help you do that easily.

Step 1 You can directly click the “x” logo on the upper right.

Step 2 Right-click the app in the taskbar and choose “Close window”.

Step 3 Finally, try deleting the files or folders once again.

Sometimes, you may be unable to close the files, folders, or apps. The Task Manager can help you do that.

  1. Press “Ctrl + Alt + Delete” simultaneously and choose “Task Manager” to open it.
  2. Find the application where your data is in use. Select it and click “End task”.
  3. Try to delete the undeletable information once again.

Solution 2. Reboot the Computer

In many cases, restarting the computer is conducive to fixing many computer errors and abnormal performance, including deleting undeletable files and folders. Sometimes, the file is in the unknown progress after you open some certain applications. By rebooting the computer, you can end the tasks, close the apps, and thus remove files successfully.

To restart a computer, go to the Start menu, click the Power button, and choose “Restart”.

You can also resort to the Settings to do the same.

  1. Go to the “Settings” window by clicking the gear icon in the Start menu.
  2. Go to “Update & Security” > “Recovery” > “Advanced startup” > “Restart now”.

After restarting the computer, you can try deleting files or folders or move on to get another solution for removing data in Windows.

Solution 3. Use Command Prompt

This allows you to delete the undeletable files without using any third-party apps. However, you need to have a bit of technical knowledge to use this method.

Step 1 Click on the “Start” button and then type “Command Prompt” or “CMD” in the search box and press the ‘Enter’ key.

Step 2 A search result appears. Right-click the “Command Prompt” icon from the search results and click on “Run as administrator” from the list that appears.

Step 3 This will launch the administrator level command prompt window which allows you to execute commands without any restriction.

The syntax of the command for deleting a file looks below:


  • DEL: stands for the delete option
  • /F: stands for the force delete option
  • /Q: stands for quite a mode option.
  • /A: stands for various file attributes such as read-only, hidden, ready for archiving, etc.
  • /C: stands for your main drive. In most of the cases, it is the “C:” drive

Step 4 For example you need to delete a file named “virus.exe” present in the desktop. Enter the command as shown and press the “Enter” key to force delete the file from the system.

Solution 4. Use FileASSASIN

FileASSASIN is a free program that is used to delete undeletable files from your system. You can download it by searching it from your browser or by clicking on the link:

Step 1 Once you have downloaded FileASSASIN, open the program by double-clicking on its icon. The main interface of the program looks as shown below:

Step 2 Now click on the browse icon (rectangular shaped icon with three dots adjacent to blank space) to select the files you want to delete.

Step 3 Browse for the file you want to delete and then double click on it to select it. Once you have select the file to be deleted, click on the box adjacent to the “Delete file” option to select it. A blue tick indicates that the option has been selected.

Step 4 Finally click on the “Execute” option to delete the file. Your file will now be deleted.

Solution 5. Replace the Undeletable File

One of the simplest ways of deleting an undeletable file can be done by simply replacing it with another file of the same name and extension. This can be done very easily as shown below. Suppose file named “Softwares” is my undeletable file.

Step 1 Open a new notepad file on your system and simply type anything random in it. Now, click on the “File” option and then click on “Save as”.

Step 2 Now, select the save location of the notepad as same as where the undeletable files are present. After doing so, choose the file type as “All files” under the “Save as type” option.

Step 3 Now, click on the undeletable file once so that the name of the undeletable file will be copied in the “Filename” option. Add the quotation mark at the start and end of the file name as shown below and then click on the ‘Save’ option.

Step 4 Now, a message will pop up asking “Do you want to overwrite and replace the existing file?”. Click on “Yes” and the undeletable file will be automatically replaced by the new notepad file. Now, you can delete the notepad file by simply selecting it and pressing the “Delete” button.

Closing Words

So far, you might have to get rid of undeletable files and folders successfully by means of the above 5 solutions. Before leaving the page, we have a few tips and tricks for you.

1. It is generally advised to have an antivirus program in your system, which is up to date to prevent your system from malware, spyware, and virus which create unnecessary undeletable files.

2. It is generally better to take the advice of an expert before performing unknown system operations.

3. If you lost data on your computer, unfortunately, don't worry! You still have the chance to get lost data back. To recover files from the computer, Recoverit Data Recovery is a nice option for all of you. It is able to recover deleted files in different formats and types.

Download | Win Windows Version Download | Mac Mac Version

Video Tutorial on How to Recover Deleted Files on Windows 10/8/7 Easily?

Recent Videos from Recoverit

View More >


9 Free Files And Folder Unlocker – Delete Locked Undeletable Files

Help delete undeleted bat

Cannot delete file on Windows? How to delete undeletable locked files and folders on Microsoft Windows? Sometimes there is another program ‘locking’ down the file because it is accessing it, for example Photoshop will lock a file when it is running in Adobe Photoshop. More often than not, a simple restart will solve this problem.

Alternative 2020 Article ➤ 15 Freeware To Securely Erase All Data From HDD Hard Drive Preventing Recovery

When to use these file and folder unlocker? Only when a restart of Windows failed to enable access do you use these special tools when you’re getting the following messages.

  • Cannot delete file: Access is denied
  • There has been a sharing violation
  • The source or destination file may be in use
  • The file is in use by another program or user
  • Make sure the disk is not full or write-protected and that the file is not currently in use

↓ 01 – LockHunter

LockHunter is a Foolproof File Unlocker tool to delete files blocked by something you do not know. LockHunter is useful for fighting against malware, and other programs that are blocking files without a reason. Un other similar tools it deletes files into the recycle bin so you may restore them if deleted by mistake. Works great on Microsoft’s Windows 10 and Apple’s macOS.

  • Shows processes locking a file or folder
  • Delete empty folders
  • Gives you detailed information on the process
  • Allows to unlock, delete, copy or rename a locked file
  • Can delete a file at next OS restart
  • Allows to kill locking process
  • Allows to remove locking processes from hard drive
  • Can unload DLLs from processes
  • Integrates in to Explorer menu
  • It deletes files into the recycle bin, so you may restore them if deleted by mistake
  • Supports both 32 and 64 bit Windows

↓ 02 – Malwarebytes FileASSASSIN

FileASSASSIN can eradicate any type of locked files from your computer.

These ‘locked’ messages commonly appear when you’re trying to delete files deposited by a malware infection, though occasionally a file just goes on lockdown. Whatever the reason for the file, FileASSASSIN can remove it.

Advanced programming techniques unload modules, close remote handles, and terminate processes in order to remove the particular locked file.

↓ 03 – IObit Unlocker

IObit Unlocker is a light-weighted yet powerful tool designed to fix the “Cannot Delete” or “Access Denied” problems.

It can “Force” terminate all related processes that prevent you from deleting or accessing files / folders that you need to.

IObit Unlocker also provides several useful options to make your work easier, “Unlock & Delete”, “Unlock & Rename”, “Unlock & Move”, and “Unlock & Copy”.

You wouldn’t be annoyed any more by messages “Cannot delete file: Access is denied”, “undeleted files”, “The file is in use by another program or user”, or “There has been a sharing violation”! Solution for “Cannot Delete” Problems on Windows.

  • No More “Cannot Delete” or “Access Denied” Problems
  • Useful Post-Unlock Options
  • Guaranteed Data Safety and Disk Stability
  • Light, Easy, and FREE to Use

Popular Article :  9 Free PC Optimizer, Boost Gaming PC 300% Faster

↓ 04 – NoVirusThanks File Governor

NoVirusThanks File Governor is an advanced program which allows for files and folders within the system to be unlocked so that normal file I/O operations can be completed when normally they would not be able to be due to operating system restrictions for files currently in use. Once a file or folder is unlocked you will be able to force-close the file’s handle, rename, delete, etc. In this case you should know these messages:

  • Unlock Locked Files – Safely unlock files that cannot be delete or are in use by other programs.
  • Unlock Locked Folders – Safely unlock all files inside a folder so that you can delete the folder.
  • Search Locked Files – You can scan files and folders for locked files from the program interface.
  • Terminate Processes – You can terminate processes that are using the locked file or folder.
  • Unlocker Alternative – This is a great free alternative to Unlocker, the popular file unlocker.
  • Close Open Handles – Safely close all opened handles and unload loaded DLL modules.

↓ 05 – DeadLock

DeadLock is a free file and folder unlocking utility brought to you by CodeDead. It can help you unlock files or folders that you’re unable to delete, copy, rename or move. As of version 1.3, DeadLock can also take ownership of files and folders! It can help you unlock files or folders that you’re unable to delete, copy, rename or move.

  • Unlock files / folders
  • Take ownership of files / folders
  • Remove files / folders
  • Move ‘locked’ files / folders
  • Copy ‘locked’ files / folders
  • Command-line arguments
  • Automatic updates
  • Windows Explorer integration

↓ 06 – EMCO UnLock IT

A neat free utility that helps you to unlock files and folders. It allows you to take a control on resources locked by a system, applications and services.

For a locked resource the application detects a list of locking processes and allows to unlock the resource by closing file and library handles or terminating locking processes.

The application offers Windows Explorer integration that makes possible folders and files unlocking by just a single click in the context menu.

  • Force Closing File Handles – The application allows to unlock a file by closing file handles to this file. This unlocking approach can be used to release a lock for files that are opened for modification. This approach is safe to use in most cases, because it doesn’t require termination of a process that hold a lock.
  • Force Closing Library Handles – The application makes possible to unlock DLL file currently using by running processes. In this case opened handles to the DLL are forced to close in order to release locks. This approach also doesn’t require termination of the process that use DLL. In most cases can continue to work successfully.
  • Termination of Protected Processes – If file can’t be unlocked by closing file and library handles, the application allows to unlock it by terminating processes that hold locks. Even processes that are protected from termination can be terminated successfully, so approach can be used when you need to remove resources locked by viruses.

↓ 07 – ThisIsMyFile

ThisIsMyFile is a small, fast tool for quickly unlocking and deleting locked or protected files on Windows. It’s helpful for those times Windows locks up a file and makes it so that you can’t remove it. Sometimes a simple reboot resolves the issue but this small app takes care of it quickly without reboot and with no installation needed.

↓ 08 – Wise Force Deleter

Wise Force Deleter is freeware that allows you to delete any file in your Windows system(64 and 32-bit). It has been developed and fully tested to work great on Windows 10 and other Windows operating systems, from Windows XP and up. No matter what you own – a desktop or a laptop.

Wise Force Deleter is designed to fix all the issues of ‘file locking’ by terminating the processes using the file or removing file-access restrictions that prevent you from deleting a file. With Wise Force Deleter, you can unlock and delete any file without frustration in Windows.

↓ 09 – Free File Unlocker

Delete Currently Used, Locked, Undeletable, Busy Files. Free File Unlocker is a free essential utility to delete currently used, locked, undeletable, busy files. Works with all 32bit and 64bit versions of Windows and Windows Server.

It unlocks files or folders and stops error messages from appearing when trying to delete, move and rename them. It can also be used to terminate malware that is difficult to be removed and kill viruses and trojans.

It is fully integrated with Windows Explorer.



Help delete undeleted bat

  • 10/16/2017
  • Чтение занимает 2 мин

Удаляет один или несколько файлов.Deletes one or more files. Эта команда выполняет те же действия, что и команда Erase .This command performs the same actions as the erase command.

Команда Del также может запускаться из консоли восстановления Windows с использованием различных параметров.The del command can also run from the Windows Recovery Console, using different parameters. Дополнительные сведения см. в разделе Среда восстановления Windows (WinRE).For more information, see Windows Recovery Environment (WinRE).


Если удалить файл с диска с помощью Del , вы не сможете получить его.If you use del to delete a file from your disk, you can't retrieve it.


del [/p] [/f] [/s] [/q] [/a[:]] erase [/p] [/f] [/s] [/q] [/a[:]]


Указывает список из одного или нескольких файлов или каталогов.Specifies a list of one or more files or directories. Для удаления нескольких файлов можно использовать подстановочные знаки.Wildcards may be used to delete multiple files. Если указан каталог, все файлы в каталоге будут удалены.If a directory is specified, all files within the directory will be deleted.
/p/pЗапрашивает подтверждение перед удалением указанного файла.Prompts for confirmation before deleting the specified file.
/f/fПринудительное удаление файлов, которые доступны только для чтения.Forces deletion of read-only files.
/s/sУдаляет указанные файлы из текущего каталога и всех подкаталогов.Deletes specified files from the current directory and all subdirectories. Отображает имена файлов при их удалении.Displays the names of the files as they are being deleted.
/q/qЗадает тихий режим.Specifies quiet mode. Подтверждение удаления не запрашивается.You are not prompted for delete confirmation.
/a [:]/a[:]Удаляет файлы на основе следующих атрибутов файлов:Deletes files the following file attributes:
  • файлы r только для чтенияr Read-only files
  • h скрытые файлыh Hidden files
  • я не проиндексированные файлы содержимогоi Not content indexed files
  • системные файлыs System files
  • файлы , готовые к архивацииa Files ready for archiving
  • l точки повторного анализаl Reparse points
  • Используется в качестве префикса, означающего “not” Used as a prefix meaning 'not'


/?/?Отображение справки в командной строке.Displays help at the command prompt.
  • При использовании del /p команды вы увидите следующее сообщение:If you use the del /p command, you'll see the following message:FileName, Delete (Y/N)?Чтобы подтвердить удаление, нажмите клавишу Y. Чтобы отменить удаление и отобразить следующее имя файла (если указана группа файлов), нажмите клавишу N. Чтобы закрыть команду Del , нажмите клавиши CTRL + C.To confirm the deletion, press Y. To cancel the deletion and to display the next file name (if you specified a group of files), press N. To stop the del command, press CTRL+C.
  • Если вы отключаете расширение команды, параметр /s отображает имена всех файлов, которые не были найдены, а не отображает имена удаляемых файлов.If you disable command extension, the /s parameter will display the names of any files that weren't found ,instead of displaying the names of files that are being deleted.
  • Если указать определенные папки в параметре, все включаемые файлы также будут удалены.If you specify specific folders in the parameter, all of the included files will also be deleted. Например, если нужно удалить все файлы в папке \ворк , введите:For example, if you want to delete all of the files in the \work folder, type:del \work
  • Можно использовать подстановочные знаки (* и ?) для удаления нескольких файлов за раз.You can use wildcards (* and ?) to delete more than one file at a time. Однако во избежание непреднамеренного удаления файлов следует использовать подстановочные знаки с осторожностью.However, to avoid deleting files unintentionally, you should use wildcards cautiously. Например, если ввести следующую команду:For example, if you type the following command:del *.*Команда Del выводит следующее сообщение:The del command displays the following prompt:Are you sure (Y/N)?Чтобы удалить все файлы в текущем каталоге, нажмите клавишу Y и нажмите клавишу ВВОД.To delete all of the files in the current directory, press Y and then press ENTER. Чтобы отменить удаление, нажмите клавишу N и нажмите клавишу ВВОД.To cancel the deletion, press N and then press ENTER.ПримечаниеПрежде чем использовать подстановочные знаки с командой Del , используйте те же подстановочные знаки с командой dir , чтобы получить список всех файлов, которые будут удалены.Before you use wildcard characters with the del command, use the same wildcard characters with the dir command to list all the files that will be deleted.


Чтобы удалить все файлы в папке с именем Test на диске C, введите следующую команду:To delete all the files in a folder named Test on drive C, type either of the following:

del c:\testdel c:\test\*.*

Чтобы удалить все файлы с расширением bat из текущего каталога, введите:To delete all files with the .bat file name extension from the current directory, type:

del *.bat

Чтобы удалить все файлы только для чтения в текущем каталоге, введите:To delete all read-only files in the current directory, type:

del /a:r *.*

Дополнительные ссылкиAdditional References

Отправить и просмотреть отзыв по

Этот продукт Эта страница Просмотреть все отзывы по странице


Не удаляются файлы с флешки, что делать

Help delete undeleted bat

За последние годы у каждого из нас появилась как минимум 1 флешка. С флешками пришли и вирусы. В этой статье я покажу как избавиться от вируса, из-за которого у вас не удаляются файлы с флешки.

Суть проблемы

Если вы удаляете файл с флешки а он все еще есть, или опять появляется. Если вы не можете удалить файл с флешки и кнопки удалить нет, то эта статья для вас.

Вариант 1 (удаление с помощью Unlocker)

Чтобы удалить файл, который не удаляется, надо для начала скачать и установить программу Unlocker Unlocker1.9.2.exe [393,47 Kb] (cкачиваний: 1). Эта программа помогает почти в 95% случаев.

Теперь заходим на флешку (или в папку) где нужно удалить файл.
1) Жмём правой кнопкой по файлу, который хотим удалить. Выбираем вариант «Unlocker» и нажимаем на него.

2) В Windows 7 у меня появляется сообщение ниже . Жмём Да .

3) В появившемся окне будет список процессов, которые не дают удалить файл.
Надо нажать «Разблокировать все».

4) Опять жмём правой кнопкой по файлу, который хотим удалить. В появившемся окне у нас есть выбор:

  • Нет действия
  • Удалить
  • Переименовать
  • Переместить

5) Выбираем «Удалить».

В отдельных случаях, когда не удаётся удалить даже с помощью Unlocker-а я использовал вариант Переименовать . А затем уже Удалить.

6) Удаляем файл и он попадает в Корзину. Удаляем его из Корзины. Всё.

Вариант 2 (разрешения на изменения)

В 5% оставшихся когда Unlocker не справляется, ему нужна помощь. Если файл не удаляется unlocker-ом, и при этом у вас ошибка типа «Удаление объекта невозможно, как ниже:

То в этом случае вам нужно сделать следующее:

Зайти на флешку, именно в корневой каталог, т.е. вы должны находится на самом верху, как ниже на картинке:

Далее предлагаю самый простой вариант — скачать файл help-delete-undeleted.bat [21 b]

После этого запустите мой файл на флешке двойным нажатием левой мышки. После этого проделайте все шаги из Варианта 1. Теперь у вас должно всё получится. Удачи!

Даём разрешение на изменение файлов

(Если боитесь качать файлы с интернета/с моего сайта)

Для этого вам нужно создать Новый Файл Блокнота и вставить в него следующий текст:

attrib -s -h -r /d /s

После этого файл нужно сохранить как .bat . Всё, поздравляю, вы только что создали свою первую мини-программу, которая делает следующее:

  • «attrib -s» поменять все системные файлы на обычные
  • «attrib -h» поменять все скрытые файлы на обычные
  • «attrib -r» поменять все файлы «только для чтения» на «файлы для записи»
  • «attrib /d» — выбрать все файлы и папки
  • «attrib /s» – выбрать все папки и под-папки

Как сделать видимыми расширения файлов

Для того, чтобы вы увидели, что созданный в блокноте файл действительно с расширением .bat и вы всё сделали правильно, вам нужно изменить (или проверить) настройки файлов и папок:

  1. Нажмите Упорядочить > Параметры папок и поиска.

    ИЛИ Нажмите, находясь в любой папке, alt. Появится меню, выберите в нём Сервис > Параметры Папок…

  2. В Параметрах Папок нужно зайти во 2ую вкладку «Вид» и найти пункт — « Скрывать расширения для зарегистрированных файлов » — нужно на нём снять галочку.
  3. После этого у вас на всех файлах появятся расширения — в конце названия файла точка и 3 или 4 буквы, например, .bat (Пакетный файл DOS), .docx (файл Word), .xlsx (файл Excel), .pptx (файл Power Point), и т.д.

Ну и конечно самая большая разница между файлом блокнот а и файлом .bat, это их иконки:



Добавить комментарий

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: