Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't delete or rename zero size apk file because it is used by explorer process #103

Open
abdr1000 opened this issue Dec 28, 2021 · 4 comments

Comments

@abdr1000
Copy link

No description provided.

@robbely
Copy link

robbely commented Mar 23, 2022

Same issue - unfortunately had to uninstall as I cannot delete nor download apk files with this active.

@Ya-Zahra
Copy link

Ya-Zahra commented Oct 8, 2022

I have this problem too. Apparently, the file handles are not released. I want the developer to pay attention to this.

@blackcrack
Copy link

blackcrack commented Oct 8, 2022

the dll is active, unregister or "uninstall" the apkshellext , reboot and then should be able the delete zero file apk, later can you "reinstall" register it again .. imho it's a access issue for read the icon, like i guess... it's only a dll who can you register or unregister.. read the cmd file.. and try to understand what's goes on
and then can you work with "regsvr32.exe" .. the best choice is, if you use the cmd file
@kkguo you should add an if "the file<=0" in size, in your code for make able to deleting.. have also some errors from time to time on my fedora smb-server.
best :)

@jayvzh
Copy link

jayvzh commented Apr 24, 2024

I write a bat can help with this problem no need uninstall or reboot. Hope author can fix this problem. Is this project still being updated?

@echo off
setlocal enabledelayedexpansion

:: Step 1: Let the user input the number of files to delete
echo Please enter the number of files you want to delete (1, 2, or 3):
set /p FileCount=

:: Confirm if the file count is correct
if "%FileCount%"=="1" goto :GetFiles
if "%FileCount%"=="2" goto :GetFiles
if "%FileCount%"=="3" goto :GetFiles
echo Invalid input. Please enter 1, 2, or 3.
goto :eof

:GetFiles
:: Step 2: Receive file paths
for /L %%i in (1,1,%FileCount%) do (
echo Please drag and drop the %%i file into this window and press Enter/Or enter the file path:
set /p "FilePath%%i="
rem Remove any additional double quotes and spaces from the path
set "FilePath%%i=!FilePath%%i:"=!"
set "FilePath%%i=!FilePath%%i: =!"
)

:: Kill explorer.exe
echo Closing Windows Explorer...
taskkill /f /im explorer.exe
taskkill /f /im dllhost.exe
timeout /t 2 /nobreak > nul

:: Step 3: Delete files
for /L %%i in (1,1,%FileCount%) do (
set "FilePath=!FilePath%%i!"
if exist "!FilePath!" (
echo Deleting: "!FilePath!"
DEL /F /Q "!FilePath!"
) else (
echo File does not exist: "!FilePath!"
)
)

:: Step 4: Restart explorer.exe
echo Restarting Windows Explorer...
start explorer.exe

echo Deletion process complete.
endlocal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants