Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Forums > General Discussion

Vista - can't delete / move .exe file after it is run in vista 64bit

Reply
 
Old 07-28-2009   #1 (permalink)
hod


Vista ultimate x64
 
 

can't delete / move .exe file after it is run in vista 64bit

Hi there,

I have a very unusual problem with my vista ultimate 64 bit,
when ever I execute an exe file, I can't delete it afterwards.
I can delete it after restart.
There is no security problem, if I do not execute the file then I can delete, move and do what I want. The moment it is run, and certainly close it, I can't delete it any longer.
I checked that the process is not running any more.
I tried to see if something is locking the file, no handle was found on the file.
It happens for different programs, no matter what as long as it is an .exe file.
I tried unlocker program that said the file is not locked.
It happens even on a usb key with FAT.
The moment I run the exe from the key I can't delete it, and I can't remove the key the right way.
When I pull out the key, and return it, I can delete the file, it is free.
But I can't do that to my hard drive.
Tried scanning for virus, and malware - nothing was found.
Tried security related, but since it happen on a usb FAT disk, and there is no security for that, I am starting to give up.
At this time formatting the computer in not an option.
I will appreciate any help.

Thanks in advance.
hod

My System SpecsSystem Spec
Old 07-28-2009   #2 (permalink)


Vista Ultimate x64 Service Pack 2
 
 

Re: can't delete / move .exe file after it is run in vista 64bit

Vista does have it's quirks, that's for sure, have you tried deleting from an elevated command prompt?
or you could try this, (sometimes it works)
Run notepad.exe
Go "File" "Open"
select the file and hit delete



Quote  Quote: Originally Posted by hod View Post
Hi there,

I have a very unusual problem with my vista ultimate 64 bit,
when ever I execute an exe file, I can't delete it afterwards.
I can delete it after restart.
There is no security problem, if I do not execute the file then I can delete, move and do what I want. The moment it is run, and certainly close it, I can't delete it any longer.
I checked that the process is not running any more.
I tried to see if something is locking the file, no handle was found on the file.
It happens for different programs, no matter what as long as it is an .exe file.
I tried unlocker program that said the file is not locked.
It happens even on a usb key with FAT.
The moment I run the exe from the key I can't delete it, and I can't remove the key the right way.
When I pull out the key, and return it, I can delete the file, it is free.
But I can't do that to my hard drive.
Tried scanning for virus, and malware - nothing was found.
Tried security related, but since it happen on a usb FAT disk, and there is no security for that, I am starting to give up.
At this time formatting the computer in not an option.
I will appreciate any help.

Thanks in advance.
hod
My System SpecsSystem Spec
Old 07-28-2009   #3 (permalink)
hod


Vista ultimate x64
 
 

Re: can't delete / move .exe file after it is run in vista 64bit

Quote  Quote: Originally Posted by ghost View Post
Vista does have it's quirks, that's for sure, have you tried deleting from an elevated command prompt?
or you could try this, (sometimes it works)
Run notepad.exe
Go "File" "Open"
select the file and hit delete
tries using elevated cmd, get "Access is denied." replay.
tried to remove it from notepad, the same as form explorer - don't work.
the problem for me, I use this computer for programming, and after compiling for the first time since booting the computer, I can't recompile again since it actually deletes the file and compile a new one, but it can't delete and there for can't recompile.
when I try to delete from explorer I get the message "The action can't be completed because the file is open in another program", but I used SysInternals Handle program to find if this file is open, and it is not.
I tried to delete the handle program after running it, just for try, and I can't.
I also tried creating an exe file from application I wrote access it, modify it, and delete it with no problem.
the only file that I can't change or delete is the .exe that I actually run, although the program ended.
I tried disabling the write cash for the disk, it didn't solve the problem.
disabled the antivirus - still no good.
disabled windows defender - still no good.
installed the Sysinternal suit it has more then 40 exe files to same folder, run 16 of them, then tried do delete all.
well all the exe files that I didn't run were deleted ok, the 16 files that I run could not be deleted.

thanks,
My System SpecsSystem Spec
Old 07-28-2009   #4 (permalink)


Vista Home Premium 32bit
 
 

Re: can't delete / move .exe file after it is run in vista 64bit

Do they resist all changes? Will they cut and paste or accept renaming?
My System SpecsSystem Spec
Old 07-28-2009   #5 (permalink)
hod


Vista ultimate x64
 
 

Re: can't delete / move .exe file after it is run in vista 64bit

Quote  Quote: Originally Posted by Ardneh View Post
Do they resist all changes? Will they cut and paste or accept renaming?
OK, I can rename the file.
I can cut and paste.
it appears I can move the files, but I can't delete them after the rename or move.

but I can only move them within the same disk, if a try to move them from one disk to another, it fails.

thanks
My System SpecsSystem Spec
Old 07-28-2009   #6 (permalink)


Vista Home Premium 32bit
 
 

Re: can't delete / move .exe file after it is run in vista 64bit

Have you 'Taken Ownership" of your work folders as described in Brink's
tutorial.

Take Ownership of file
My System SpecsSystem Spec
Old 07-28-2009   #7 (permalink)
hod


Vista ultimate x64
 
 

Re: can't delete / move .exe file after it is run in vista 64bit

Yes I did, made sure i am the owner of the directory and file, before running the file.
remember i can delete the file before i run it. i made sure i have full rights.
after running the .exe, i can't delete it.
but i can change it rights, and take ownership and do all the security changes i want, i can do everything except delete it. i can change its content, i open it with a hex editor and changed its content.
My System SpecsSystem Spec
Old 07-28-2009   #8 (permalink)


Vista Home Premium 32bit
 
 

Re: can't delete / move .exe file after it is run in vista 64bit

Can you cut and paste to a USB Flash Drive and then yank the sucker?
My System SpecsSystem Spec
Old 07-28-2009   #9 (permalink)
hod


Vista ultimate x64
 
 

Re: can't delete / move .exe file after it is run in vista 64bit

no I can't. i can't move to a different disk, what it does it just copy to the destination disk, and i receive an error that the file can't be deleted.
i don't have the problem with one file, but with all exe files every where.
after restart all the files are free again as long as i don't start them.
the problem i can't develop i can't restart my computer for every change I make.
and i can't update, for every small update i need to restart since the exe file is locked, and shutting down the application is no good.
My System SpecsSystem Spec
Old 07-28-2009   #10 (permalink)


Vista Home Premium 32bit
 
 

Re: can't delete / move .exe file after it is run in vista 64bit

Well. I suppose you might try making a new User Account and seeing if the problem isn't there. If it isn't - "migrate" and delete the old account.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Can't delete or move file Vista file management
Create New folder, move file, delete file. Explorer Freeze General Discussion
Can NOT delete a file from Desktop - Tried Move to boot to Vista General
Can't open, rename, delete, or move a file.... Vista General
Can't Delete/rename/move a file.. Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46