Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Windows 7 locks a file from being edited or deleted.

29 Jun 2014   #1
giantslayer

Windows 7 Professional 32bit
 
 
Windows 7 locks a file from being edited or deleted.

I am running Windows 7 and using the 7-Zip application to edit, add new, and delete existing files in an epub archive. I can overwrite a one file in the archive one time with no problems. If I try to delete or modify the same file within the archive a second time, Windows locks the entire archive and does not allow any changes to be made to the archive. 7-Zip gives the prompt, "Cannot create a file when that file already exists." I thought initially this was a 7-Zip error, but have closed the 7-Zip application and any 7-Zip processes running in the task manager. I have tried taking Administrator ownership of the document. No other process is accessing the file, only the windows os. Only after a log out or a restart of Windows is the archive accessible again. It also creates a random file name with a .tmp extention. After the log out or restart, I have to change the name and extension of the .tmp file to its original name and .epub extension. It is rather frustrating being able to modify a file only one time before I have to log out and the log back in to make further changes. This never happened when working with windows XP. Any help would be greatly appreciated.

Thanks,
--christopher


My System SpecsSystem Spec
.
29 Jun 2014   #2
Berton

Windows 7 Ultimate 64-bit, Windows 8.1 64-bit, Mac OS X 10.10, Linux Mint 17, Windows 10 Pro TP
 
 

But were you using 7-Zip on your WinXP to do the same thing? Have you tried turning off UAC/User Account Control in Control Panel, User Accounts?
My System SpecsSystem Spec
29 Jun 2014   #3
andrew129260

Windows 10 Pro
 
 

DO NOT DISABLE UAC.

It is a very important part of the security for windows 7. Turning it off almost brings the security level to xp.

What version of 7 zip are you using? Stable or beta?

Where are you saving the file (archive) with 7 zip?
My System SpecsSystem Spec
.

29 Jun 2014   #4
logicearth

Windows 10 Pro (x64)
 
 

What security software are you running? These types of problems are common with real time anti virus scanners.
My System SpecsSystem Spec
29 Jun 2014   #5
giantslayer

Windows 7 Professional 32bit
 
 

Thank you all for your replies. I am currently using the 32bit 7 Zip version 9.2.0
I had AVG installed, but have temporarily removed it to see if it is the culprit. I have encountered this issue both when I edit the files within the archive directly by using notepad2 and then saving directly back into the archive. I also encounter the issue when I copy the file out of the archive make changes and then copy the file back into the archive. Either way, the file is essentially overwritten and can only be modified once before the archive becomes locked. The archive is in my documents folder. The epub file is basically a collection of compressed html files with a few other text files. In the design process as well as in adding the interactivity through javascript, it requires the html files to be edited many times over before ending at a final state.
I do have the UAC on, but had it on with XP.
My System SpecsSystem Spec
29 Jun 2014   #6
andrew129260

Windows 10 Pro
 
 

UAC does not come with windows XP.

User account control began with vista.

You state it is in your documents folder.

Have you taken ownership of the documents folder where the archive is stored to see if that fixed it?

Did you copy your documents from xp to an external hard drive, then install 7 and then copy the data back over? If so the permissions might be messed up.

Take Ownership - Allow or Prevent Users and Groups To

Take Ownership Shortcut

What is user account control (UAC)?

What are User Account Control settings?
My System SpecsSystem Spec
04 Jul 2014   #7
giantslayer

Windows 7 Professional 32bit
 
 

I have tried the suggestions above and am still having this issue happen. I can only modify a file within the archive one time. If I try to modify or overwrite a file a 2nd time, the entire archive becomes locked.
My System SpecsSystem Spec
10 Jul 2014   #8
giantslayer

Windows 7 Professional 32bit
 
 

This is driving me absolutely crazy. When the file becomes locked, I cannot regain ownership of the file. I cannot open it, nor can I modify or delete it. I am the only user and have administrator privileges. Why is the file getting locked? I'll try anything.
Is there some registry setting I need to add or modify so this file does not get locked?
My System SpecsSystem Spec
11 Jul 2014   #9
Steve985

Win 7 HP 64bit
 
 

There is a registry hack called "Take Ownership". It puts an entry into the right click context menu. It is extremely useful and is one of the first things I put on a new installation. It can be found here Add "Take Ownership" to Explorer Right-Click Menu in Win 7, 8 or Vista. It might assist you in retaining ownership of the files.
My System SpecsSystem Spec
11 Jul 2014   #10
giantslayer

Windows 7 Professional 32bit
 
 

Steve, I already have that right click menu option. So far it does nothing to unlock the file. Does your link change this functionality?

I think I may have found the culprit. It may be internet explorer. It only happens after I send the file in email after I attach it in ie. I think ie locks the file from being edited or deleted.
My System SpecsSystem Spec
Reply

 Windows 7 locks a file from being edited or deleted.




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Windows Movie Maker fails to save edited file
I take a video that I made while playing an online game, using Bandicam and load it into Windows Movie Maker, add a title, and then try to save it. This is what my screen looks like after a half hour with a 5 minute video. I deleted WMM and re-installed it from Windows Live Essentials 2012. Same...
Music, Pictures & Video
Can not rename folder that has a text file that was just edited
A folder with a .txt file that was just edited or created, saved and closed, going up one level to rename the folder, I get the dreaded; "The action can't be completed because the folder or a file in it is open in another program." I can use Unlocker (a wonderful program) to do so, but that...
General Discussion
Windows DVD Maker Telling Me That Edited VOB File Will Not Fit
Hi, I hope I am in the right forum for this question. I have a problem that is baffling me and perhaps somebody may be able to explain my problem. Let me start at the beginning. I had a bunch of VHS tapes of my family that I decided to have transferred on to DVDs. Now that they are on DVDs,...
Music, Pictures & Video
Can't saved an edited WordStar file (folder locked?)
I bought a 32-bit Windows 7 computer because it evidently will be the last build to run WordStar, which I have used for more than twenty years and can't imagine life without. As I had done with my Windows XP and Vista machines, I simply copied my two basic folders (C:\WS containing the system files...
Software
Copied flash to harddrive, and Cannot save edited file in folder.
I have Windows 7. i copy entire flash drive to a folder (Call it "RemovableDrive" folder under My Document) from flash drive (USB). In "RemovableDrive", folder, I right click and select Properties, then I uncheck READ ONLY, and select Apply to set all files and folder/subfolders to uncheck...
General Discussion
Music file tags can't be edited
Hi guys, On some (not all) of my music files, I cannot edit the details/tags/metadata (call it what you will). If I right-click the file, go to Properties then the Details tab, I cannot click in the fields to edit them. If I use the details panel at the bottom of the folder, or try to edit the...
Music, Pictures & Video


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 13:34.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App