Posted in Command Line, Linux Remove all EXE files Binny V A April 15, 2008 5 Comments on Remove all EXE files Removes all exe files in the current directory tree. Useful to clear virus from flash drives. find . -name "*.exe" -delete Author: Binny V AA philosopher programmer who specializes in backend development and stoicism.
hi , this command not working properly, i need to delete all the .exe file bcz my makefile only delete object file…… Reply
Are you using this in Windows? This command is for linux only. In windows try something like ‘del *.exe’ Reply
Hi, Use this for windows: del *.exe /P /F /S This command will delete all exes in sub directories and force deletion of read-only exes Reply
If files are locked by other processed then I am using http://www.unlockertool.com to delete locked files. It just closes the process that is using the file and that’s all Reply
hi ,
this command not working properly, i need to delete all the .exe file bcz my makefile only delete object file……
Are you using this in Windows? This command is for linux only.
In windows try something like ‘del *.exe’
Hi,
Use this for windows: del *.exe /P /F /S
This command will delete all exes in sub directories and force deletion of read-only exes
hi,
i can’t delete .exe file
If files are locked by other processed then I am using http://www.unlockertool.com to delete locked files.
It just closes the process that is using the file and that’s all