Unable to delete file

R

Rick

I copied a png file over to another directory. I deleted
the original. Now, I'm trying to delete this copied file,
but some reason I get the error "Can't delete <filename>:
There has been a sharing violation. The source or
destination file may be in use." I've closed all
applications, even tried rebooting, yet I still can't
delete this file. Is there some way I can force the
system to delete the file? Or how can I figure out what
is sharing this file so that I can kill that process?
 
R

Rick

Ok, I read through previous threads on a similar problem
and I was able to finally delete the file in Safe Mode.

Next question... What is causing this problem? This was
only a 2KB .png file. It seems to me that Explorer was
somehow locking down the file. I hadn't seen this happen
before.
 
R

Ricardo M. Urbano - W2K/NT4 MVP

Rick said:
Ok, I read through previous threads on a similar problem
and I was able to finally delete the file in Safe Mode.

Next question... What is causing this problem? This was
only a 2KB .png file. It seems to me that Explorer was
somehow locking down the file. I hadn't seen this happen
before.

Stupid question, but what is a .png file?

Anyway, there are 2 tricks for deleting uncooperative files:

1) Rename it, then delete
2) Delete it from the command prompt, but prepend the fully qualified
path with \\.\

For example, let's say the file is d:\folder1\subfolder1\file.png, then
you would type the following at the command prompt:

del "\\.\d:\folder1\subfolder1\file.png"

The quotes are only necessary if there are spaces in that path, but they
never hurt to include.

hth
 
J

Josef Stalin

message
Stupid question, but what is a .png file?

A Portable Network graphic (PNG) file is a pixel based image that can be
used to display images on the Web (some older browsers may not support the
use of this format). The start of the PNG file was in an alternative to the
proprietary Compuserve GIF file format. It will support 24-bit color, using
a lossless compression approach.

The PNG file settings that can be controlled are:

. Transparency information
. File defined background color
. Adobe Gamma correction

Use of a PNG file in a Web project is a good fit. However, because of the
lack of support for the CMYK color space, and the fact that there can be no
color separations, the PNG file is not a good fit in a print production
cycle.


Windows 2000/NT MVP
 
R

Ricardo M. Urbano - W2K/NT4 MVP

Josef said:
A Portable Network graphic (PNG) file is a pixel based image that can be
used to display images on the Web (some older browsers may not support the
use of this format). The start of the PNG file was in an alternative to the
proprietary Compuserve GIF file format. It will support 24-bit color, using
a lossless compression approach.

The PNG file settings that can be controlled are:

. Transparency information
. File defined background color
. Adobe Gamma correction

Use of a PNG file in a Web project is a good fit. However, because of the
lack of support for the CMYK color space, and the fact that there can be no
color separations, the PNG file is not a good fit in a print production
cycle.

Windows 2000/NT MVP

Thx for the clarification, Josef!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top