Solved: File locked by both operating system and Excel.

From: John Baughman (john.baughmanREMOVEME_at_REMOVEMEhp.com)
Date: 02/27/04


Date: Fri, 27 Feb 2004 12:44:24 -0800

Actually, it's one solution.

Note: This solution should work with any version of
Windows that allows you to access the OS at a command
prompt on reboot.

First note the complete path to the file. If it is in My
Documents, the path is usually C:\Documents and
Settings\[username]\My Documents
If it is the Desktop, then it is C:\Documents and
Settings\[username]\Desktop

Next you MUST have the local computer's administrator
password. Now, reboot. Immediately after the hardware
initialization or during the PC logo screen, start
pressing F8. You should see a DOS screen with a menu.
Arrow key down to the prompt for Command Prompt.

On WinXP, you will have to wait for it to boot up loading
a lot of drivers. Otherwise, on Win9* you will be popped
into DOS almost right away.

WinXP: Login as administrator!

Now, type "CD <path to locked Excel file>". Here's an
example:

CD c:\documents and settings\joba\my documents

Now, type "DEL <locked Excel filename>". Here's an example:

DEL myexcelfile.xls

To make sure the file deleted, type "DIR <locked Excel
filename>". An example:

DIR myexcelfile.xls

If you see a listing for the file this solution didn't
work. If you don't, pat yourself on the back then press
CTRL + ALT + DEL (WinXP) or type EXIT then hit enter.
On WinXP, you will see the normal Windows Security dialog
box. Click Shutdown... and follow the normal Restart step.
On Win9*, the system should either shutdown or reboot,
it's been a while since I did the command prompt boot
there.

That's it. Any other suggestions, please let me know.

-John Baughman
Fort Collins

>-----Original Message-----
>I recently had a file appear locked and it opened read-
>only by Ecxel. Nowafter following the advice in
>http://www.contextures.com/xlfaqApp.html#ReadOnly Excel
>says "Excel cannot access '<filename.xls>'. The document
>may be read-only or encrypted." After clicking OK, it
>displays "Cannot access '<filename.xls>'."
>
>If I try to move/delete the file, Windows XP (v2002, SP1)
>says "Cannot delete <filename.xls>: It is being used by
>another person or program. Close any programs that might
>be using the file and try again."
>
>All of this is after repeated reboots, and before and
>after attempting to open the file, immediately after
>rebooting, etc.
>
>Any ideas anyone? Please?
>
>Thanks!
>John Baughman
>Fort Collins, CO
>.
>



Relevant Pages

  • RE: c000021a (Fatal system error)
    ... I've just tried what you suggested but alas it still won't give me a command ... with command prompt but it just carried on to starting windows and then it ... "nass" wrote: ... It kept doing a reboot ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: [SLE] fsck!!!
    ... it will not boot till you run fsck manually, ... If it is giving a prompt, it is expecting you to run fsck right then ... then ^D will close and reboot - ... command line prompt. ...
    (SuSE)
  • Re: DOS command
    ... I do protect my pc with Norton2005 at the first WinXP installation updated ... Thank you for tour prompt response, If I execute>path command it gives me ... sp2 and found out that whenever I type a dos command ...
    (microsoft.public.windowsxp.general)
  • Re: Security updates
    ... Thanks for the prompt reply again. ... But I still do not able to log in to my WinXP, although I have tried out all ... I have also change to reboot in Safe Mode & log in as admin, ... >> reboot of the security updates of my PC, I didn't need a password to go. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: cant stop xp pro reboot loop
    ... do that but input the next command 'fixboot' enter. ... letter and a prompt like ... i was able to change the reboot setting. ... should i wind up in dos to complete your instructions? ...
    (microsoft.public.windowsxp.help_and_support)