Solved This action cannot be completed...

JustJoan

New Member
I have a couple of Word 7 files which can't be moved, deleted or renamed. Any attempt results in a message: This action cannot be completed as it is in use by another program. It is not in use by any program I am aware of. When I open the file, it says (Read Only) in the title bar but the properties dialogue boxes are not checked as read only. Of course, I can't save any changes to the file unless I go to 'save as' but that still leaves me with an undeletable/uneditable file. I am using Vista Ultimate. Any help would be greatly appreciated.
Joan
 

My Computer

Unless you're particularly interested in the mechanics of why this might be happening, I'd suggest booting to safe mode (press the F8 key early during Windows startup) and moving or deleting the files from there. You probably won't have trouble deleting the files that way.
 

My Computer

Thank you for replying. I would love to know why this is happening because I have not knowingly set the files as 'read only'. I actually have 3 files which have made themselves untouchable and would like to avoid collecting more. Maybe this is a Word 7 problem rather that a file management problem. Any ideas?
Joan
 

My Computer

Alright. I always appreciate a willingness to troubleshoot :)

If the problem is happening even while Task Manager tells you Winword.exe is not running (it's not in the process list), then it's unlikely to be directly caused by Word. The key is to work out which process has declared its current use of those files, and in doing so ensured that the OS won't allow them to be deleted. This association between a process and a file it's using is called a "handle", so your task is to find which process(es) has open handles to the 3 files.

One way to do that is with the too-confusingly-named "Handle" utility which you can download here:

Handle

Use it from a CMD prompt by feeding it the name of the file(s). For example, on my machine:
W:\Handle>handle w:\handle\eula.txt

Handle v3.42
Copyright (C) 1997-2008 Mark Russinovich
Sysinternals - www.sysinternals.com

WINWORD.EXE pid: 4868 5E4: W:\Handle\Eula.txt
Obviously, I had the Eula.txt file open in Word at the time, and in your case it may be something entirely different.
 

My Computer

Yikes! I went to the site above but am not at all sure I understand what to do and worry about messing up my system. I really appreciate your help and will look into using that utility. I'll let you know if I get it figured out. At least I know there is a way of finding out what programs are 'using' a file.
Thank you,
Joan
 

My Computer

Hello Joan, and welcome to Vista Forums.

Since you have a 32-bit Vista version, you might see if using the free program Unlocker on the files may allow you to do what you wanted to them.

Hope this helps,
Shawn
 

My Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Graphics card(s)
    NVIDIA GeForce 940MX
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD
Thank you Brink. That helps in that I am able to rename, move or delete files. I removed 2 files but the third one I want to keep and it still says it is read only. I saved it under a new name, deleted the one with the old name and find that the newly named one still thinks it is read only even though properties says it is not. Wish I knew how these things work.
Joan
 

My Computer

Just as a point of interest, Unlocker can sometimes lead to file damage.

Any pending changes to the file that the app may have wanted to make, eventually, will not happen after Unlocker is used because it merely deletes the open file handle with no logic as to whether that's safe or not. Better to work out which process has open handles, and then if it can be shut down gracefully it'll write whatever it wants to the file, presumably leaving it in a consistent state. Otherwise, if the process is too pooched to close normally, terminating that process still has the desired effect - the OS cleans up the entire process-specific handle table.
 

My Computer

So - good things can come with a hitch. Tomorrow I will work on figuring out how the handles work and, hopefully, learn how to deal with this if it comes up again.
Thanks,
Joan
 

My Computer

I downloaded the handle software and read information about the program on the internet but do not have enough knowledge to know how to use it. Is there any other way to find out which programs are 'using' the file?
Joan
I have to log off now but will check in tomorrow.
Thanks.
 
Last edited:

My Computer

I downloaded the handle software and read information about the program on the internet but do not have enough knowledge to know how to use it. Is there any other way to find out which programs are 'using' the file?
Joan

Joan, if you are referring to "Unlocker", then you just right click on the file and click on "Unlocker" to use it, then click on "Unlock All" to unlock the file. You can read more details about it at the link below.

UNLOCKER 1.8.7 BY CEDRICK 'NITCH' COLLOMB

Hope this helps,
Shawn
 

My Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Graphics card(s)
    NVIDIA GeForce 940MX
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD
There are many utilities which can find these open links between programs and the files they're using (called handles). The eponymously-named "Handle" utility I suggested is one of the simplest - as long as you're OK with basic command prompt operation. All you have to do is to launch a CMD instance as administrator (right-click the CMD icon in the start menu and select "run as administrator"), then change directory to the folder where you unzipped the Handle utility, then type HANDLE followed by the name of the file or directory you're interested in. I pasted an example in my earlier post.

Otherwise, if the command prompt (CMD) is not your favourite thing, there are other utilities such as the hugely powerful Process Explorer (also from Sysinternals), but that's getting to the point where it's not worth the effort unless you're interested in learning about these mechanisms for learning's sake.

The Unlocker utility that Brink suggested can also tell you which process has open handles to a file, but I'd personally recommend not using it to actually "unlock" because that mindlessly deletes the handle - an action which is not always safe, especially if you care about the file in question. Instead, you could use Unlocker to identify the process with the open handle(s) to the file, and then try to close the process the way you'd normally shut down that app. Once the process is no longer running, the handle will be gone too, and the OS will be willing to let the file be manipulated.

Hope this helps.
 

My Computer

Sorry I took so long to continue with this discussion. The Unlocker utility says there are "no locking handles found' so I did not continue with the process. I do not want to damage this file.
Now... Handle and the CMD: I am not worried about using the prompt but am not sure how to get the directory changed to the file concerned. The file is 'Printing.doc under C:\Users\Joan\Documents\Joan's files 2\Workshop\Binder. I managed to change the directory to Users but that is it. Can you help any further?
Thanks,
Joan
 

My Computer

Hi Joan. "Read Only" is not necessarily the same thing as "This action cannot be completed as it is in use by another program." Do you still see that "in use..." error message when attempting to open printing.doc?

If not, the problem with that file specifically may have nothing to do with handles. You could confirm that with the Handle utility. To change directory, just put the full path in quotes (because it's got spaces), like this:

c:\> cd "C:\Users\Joan\Documents\Joan's files 2\Workshop\Binder\"

The prompt should then change to this:

C:\Users\Joan\Documents\Joan's files 2\Workshop\Binder\>

Assuming you unzipped Handle.exe to c:\Handle, try this command syntax:

C:\Users\Joan\Documents\Joan's files 2\Workshop\Binder\> c:\Handle\handle.exe Printing.doc

If that says there are no handles, the "read-only" condition has nothing to do with open file handles. Try this command too please:

C:\Users\Joan\Documents\Joan's files 2\Workshop\Binder\> attrib Printing.doc

What output does that produce?
 

My Computer

I can open the document with no problem but cannot save it under the same name as it has designated itself 'read only'. I cannot rename or move it using Windows Explorer because it says it is "in use... I will try your suggestions and get back to you.
Joan
 

My Computer

Hmmm.. Typing "C:\Users\Joan\Documents\Joan's files 2\Workshop\Binder" resulted in The system cannot find the path specified. and changed the prompt to C:\Users\Joan> . I have taken the path name from the file's properties dialog box so it should be correct. I was careful about the typing too.
Joan
 

My Computer

Try CD-ing one level at a time then....

C:\Users\Joan\> cd Documents

C:\Users\Joan\Documents\> cd "Joan's files 2"

C:\Users\Joan\Documents\Joan's files 2\> cd Workshop

And so on...
 

My Computer

Doing it one step at a time gets me to C:\Users\Joan\Documents\Joan's files 2\Workshop\Binder\> (That's a step up in my learning) but the next part didn't work. I looked at the properties for the handle utility and found it was C:\Users\Joan\Documents\Handle[2]. Is that what I should type in after Binder\>?
I appreciate your patience.
Joan
 

My Computer

And I appreciate your willingness to troubleshoot :)

You need to make sure that the file called Handle.exe has been unzipped from the Handle.zip archive which you downloaded. (Handle.zip also contains a text file called EULA.txt but that's not important for our purposes)

Once you've got Handle.exe out of the zip archive (double-clicking the ZIP file will allow you to see its contents and cut-and-paste the zip file wherever you like), try copying Handle.exe to the "C:\Users\Joan\Documents\Joan's files 2\Workshop\Binder\" path. That can be done with the CMD prompt, but it's probably easier to just use explorer to copy the file like you would do for any other file.

Once you've got both Handle.exe and Printing.doc under "C:\Users\Joan\Documents\Joan's files 2\Workshop\Binder", run CMD as administrator (right-click the CMD icon in your start menu and choose "run as admin...") and on that CMD prompt type this:

C:\Users\Joan\Documents\Joan's files 2\Workshop\Binder\> Handle.exe Printing.doc

The output should hopefully reveal which process/app has open handles to Printing.doc.
 

My Computer

At last, I got the handles utility to work and it says there are no handles associated with this file. I then tried the attrib Printing.doc and it just returned A followed by the complete path name so there must be a problem with Word 7.
I really enjoyed getting some experience with the Command Prompt and eliminating some sources of the problem.
I do not understand why Word has made this a Read Only document but the properties box does not have a checkmark on Read Only. Attempting to do anything such as change the document name results in "This action cannot be completed because the file is open in another program." It would be wonderful to troubleshoot this because other files have mysteriously been designated Read Only.
Should I be trying a Word 7 forum?
Joan
 

My Computer

Back
Top