PDA

View Full Version : Problems deleting a file


Rob
April 5th 03, 08:47 PM
Hi,

I am trying to delete a file and I receive the
message "error deleting file - can't delete because
another person or program".

How do I go about deleting the file.

Thanks.

Regards
Rob

Kelly
April 5th 03, 08:58 PM
Hi Rob,

Close all open apps. Open a command prompt (Start/Run/CMD) and navigate to
the directory with the offending file(s). Then open the Task Manager and
click on the Processes tab, select "explorer.exe" under Image Name. Click
"End Process".

In the opened Command Prompt, DEL the offending files (DEL *.mpg, DEL
mus*.avi, DEL test.wmv, etc.) Once done, go back to the task manager and
click on the Applications tab. Click the "New Task..." button. in the
dialog, type explorer.exe and click OK.

Note: Could also opt for: ATTRIB -H -R -S filename before the DEL.

Or you can use Process Explorer
http://www.sysinternals.com/ntw2k/freeware/procexp.shtml

Use the search function to find every handle that Explorer.Exe has open and
close them (right-click on the file and choose 'close handle'). Then delete
the file(s) in question.

--
All the Best,
Kelly

MS-MVP Win98/XP-Shell/User [AE-Windows® XP]
Troubleshooting Windows XP
http://www.kellys-korner-xp.com
http://www.kellys-korner-xp.com/xp_abc.htm
http://www.kellys-korner-xp.com/xp_tweaks.htm


"Rob" > wrote in message
...
> Hi,
>
> I am trying to delete a file and I receive the
> message "error deleting file - can't delete because
> another person or program".
>
> How do I go about deleting the file.
>
> Thanks.
>
> Regards
> Rob

Kelly
April 5th 03, 08:58 PM
Hi Rob,

Close all open apps. Open a command prompt (Start/Run/CMD) and navigate to
the directory with the offending file(s). Then open the Task Manager and
click on the Processes tab, select "explorer.exe" under Image Name. Click
"End Process".

In the opened Command Prompt, DEL the offending files (DEL *.mpg, DEL
mus*.avi, DEL test.wmv, etc.) Once done, go back to the task manager and
click on the Applications tab. Click the "New Task..." button. in the
dialog, type explorer.exe and click OK.

Note: Could also opt for: ATTRIB -H -R -S filename before the DEL.

Or you can use Process Explorer
http://www.sysinternals.com/ntw2k/freeware/procexp.shtml

Use the search function to find every handle that Explorer.Exe has open and
close them (right-click on the file and choose 'close handle'). Then delete
the file(s) in question.

--
All the Best,
Kelly

MS-MVP Win98/XP-Shell/User [AE-Windows® XP]
Troubleshooting Windows XP
http://www.kellys-korner-xp.com
http://www.kellys-korner-xp.com/xp_abc.htm
http://www.kellys-korner-xp.com/xp_tweaks.htm


"Rob" > wrote in message
...
> Hi,
>
> I am trying to delete a file and I receive the
> message "error deleting file - can't delete because
> another person or program".
>
> How do I go about deleting the file.
>
> Thanks.
>
> Regards
> Rob

Google