deleting a file deletes corresponding directory!!!!

J

jameshanley39

create a directory called
asdf_files

create a file called asdf.htm

like
c:\blah\asdf_files c:\blah\asdf.htm
i.e. the asdf.htm file not in the asdf_files directory.


Now delete one!!!!

And it deletes the other one!!!!!

It doesn`t have to be asdf, it can be anything. And the file can
be .htm or .html

I know why windows does this.. Because when saving websites locally
with internet explorer, that convention is used, and it wants to help
users delete them should they choose to

Is there any way to fix this? / Stop it from doing this?
 
P

Pegasus \(MVP\)

create a directory called
asdf_files

create a file called asdf.htm

like
c:\blah\asdf_files c:\blah\asdf.htm
i.e. the asdf.htm file not in the asdf_files directory.


Now delete one!!!!

And it deletes the other one!!!!!

It doesn`t have to be asdf, it can be anything. And the file can
be .htm or .html

I know why windows does this.. Because when saving websites locally
with internet explorer, that convention is used, and it wants to help
users delete them should they choose to

Is there any way to fix this? / Stop it from doing this?

I was unable to duplicate your observation, perhaps because
I used different methods when creating/deleting my files and
folders. You should be much more precise when reporting
this phenomenon so that other people can duplicate it step
by step, e.g. like so:
1. Launch "My Computer".
2. Navigate to C:\.
3. Create a folder called "C:\asdf_files".
etc. etc.
 
J

jameshanley39

I was unable to duplicate your observation, perhaps because
I used different methods when creating/deleting my files and
folders. You should be much more precise when reporting
this phenomenon so that other people can duplicate it step
by step, e.g. like so:
1. Launch "My Computer".
2. Navigate to C:\.
3. Create a folder called "C:\asdf_files".
etc. etc.-


It happens to me on my 2 machines. One with win xp pro sp2, the other
with win xp pro. The other with plain win xp pro (prob pre sp1). The
person I bought "the laptop" from installed the plain one. I
installed win xp pro sp2 on another computer. So totally independently
done, and different windows xp installations.
Both have same problem.



However I create the. folder and file, I get the problem.

Even if I use the command prompt
md blah_files
copy con blah.html

Windows explorer, or "my computer" . Whether in C or a subfolder.

If I delete one from the command line it is fine.

But if I delete one from "my computer" - On C, or any folder within C,
I get the problem. Deleting them from windows explorer, I get the
problem.

Same thing of course if creating them by saving a website on my hard
drive, with internet explorer. `cos it creates that file and
directory. That is how I originally noticed the problem. When trying
to delete the directory part.. I worked around it by renaming the
directory and deleting it. But that`s a workaround, not a fix.

It looks like your windows doesn`t have that problem..
Maybe as a test try saving a website in internet explorer. Since that
will create a directory and file such that I speak of.. But it looks
like your windows xp does not have this behaviour.
 
P

Pegasus \(MVP\)

I was unable to duplicate your observation, perhaps because
I used different methods when creating/deleting my files and
folders. You should be much more precise when reporting
this phenomenon so that other people can duplicate it step
by step, e.g. like so:
1. Launch "My Computer".
2. Navigate to C:\.
3. Create a folder called "C:\asdf_files".
etc. etc.-


It happens to me on my 2 machines. One with win xp pro sp2, the other
with win xp pro. The other with plain win xp pro (prob pre sp1). The
person I bought "the laptop" from installed the plain one. I
installed win xp pro sp2 on another computer. So totally independently
done, and different windows xp installations.
Both have same problem.



However I create the. folder and file, I get the problem.

Even if I use the command prompt
md blah_files
copy con blah.html

Windows explorer, or "my computer" . Whether in C or a subfolder.

If I delete one from the command line it is fine.

But if I delete one from "my computer" - On C, or any folder within C,
I get the problem. Deleting them from windows explorer, I get the
problem.

Same thing of course if creating them by saving a website on my hard
drive, with internet explorer. `cos it creates that file and
directory. That is how I originally noticed the problem. When trying
to delete the directory part.. I worked around it by renaming the
directory and deleting it. But that`s a workaround, not a fix.

It looks like your windows doesn`t have that problem..
Maybe as a test try saving a website in internet explorer. Since that
will create a directory and file such that I speak of.. But it looks
like your windows xp does not have this behaviour.

===============

Even if I remove the file (or the folder) from "My Computer",
I am unable to duplicate your phenomenon. It is either due
to something particular installed on your machine or else it
is highly dependent on the exact step-by-step process that
you follow (which you have not detailed so far).
 
J

jameshanley39

Even if I remove the file (or the folder) from "My Computer",
I am unable to duplicate your phenomenon. It is either due
to something particular installed on your machine or else it
is highly dependent on the exact step-by-step process that
you follow (which you have not detailed so far).-

As I said, it happens any way I create them. And if I delete them then
it is only fine when deleting from command propmt. I have nailed the
problem down such that one doesn`t need a detailed process(if one has
the problem!).

Nevertheless,


Here is a way that is not too tedious to follow or write.

And a detailed process.

C:\>md asdf
C:\>cd asdf
C:\asdf>md blah_files
C:\asdf>copy con blah.html
abc
^Z
1 file(s) copied.
C:\asdf>explorer .\
C:\asdf>

Now the explorer window comes up.

Highlight the blah.html file or blah_files folder, hit DEL , OK.
And it deletes Both.

It seems to me that you clearly cannot duplicate the problem on your
machine..

But I suspect it might be quite common.

I am on IE 6. 6.0.2800 ...... The other has IE6 6.0.2900
Later in the week I will get the chance to try it on another with
windows well updated, e.g. with IE7. That one also, windows installed
independently, by the guy I bought the laptop from. (a different guy
to the other laptop, and of course different to my computer that I
installed windows on)

I have found another aspect to the problem .

Not only when you delete one it deletes both.
But when you copy one it copies both.
 
J

jameshanley39

Now that you have posted a step-by-step process, I can
duplicate the phenomenon on my own machine (which is why
I asked for it in the first place!). The behaviour you observe
is by design - see here:http://support.microsoft.com/kb/252721

I can see it is by design, I said so myself!

the phenomenon I described occurred any way that the file and folder
are created. And however they are deleted, (if not deleted in the
command prompt)

Given that you duplicated the problem when given that detailed
process. What processes were you using that avoided the problem/
behaviour while that setting was set in tools..folder options ?
 
G

George

create a directory called
asdf_files

create a file called asdf.htm

like
c:\blah\asdf_files c:\blah\asdf.htm
i.e. the asdf.htm file not in the asdf_files directory.


Now delete one!!!!

And it deletes the other one!!!!!

That's the way it works by default. If you save a web page Windows
stores pics and related files into a folder with the same name as the
page. Deleting the page it also deletes the folder content. No mistery.
 

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