Jump to content

deleting a file deletes corresponding directory!!!!


Recommended Posts

Guest jameshanley39@yahoo.co.uk
Posted

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?

  • Replies 9
  • Created
  • Last Reply

Popular Days

Guest Pegasus \(MVP\)
Posted

Re: deleting a file deletes corresponding directory!!!!

 

 

<jameshanley39@yahoo.co.uk> wrote in message

news:175daec9-428f-4b4f-bfa6-6a3df0a25422@c65g2000hsa.googlegroups.com...

>

> 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.

Guest jameshanley39@yahoo.co.uk
Posted

Re: deleting a file deletes corresponding directory!!!!

 

On 23 Mar, 13:31, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:

> <jameshanle...@yahoo.co.uk> wrote in message

>

> news:175daec9-428f-4b4f-bfa6-6a3df0a25422@c65g2000hsa.googlegroups.com...

>

>

>

>

>

>

>

> > 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.-

 

 

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.

Guest Pegasus \(MVP\)
Posted

Re: deleting a file deletes corresponding directory!!!!

 

 

<jameshanley39@yahoo.co.uk> wrote in message

news:644dfc42-adb2-4444-8572-9ccf3fdc8600@m44g2000hsc.googlegroups.com...

On 23 Mar, 13:31, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:

> <jameshanle...@yahoo.co.uk> wrote in message

>

> news:175daec9-428f-4b4f-bfa6-6a3df0a25422@c65g2000hsa.googlegroups.com...

>

>

>

>

>

>

>

> > 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.-

 

 

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).

Guest jameshanley39@yahoo.co.uk
Posted

Re: deleting a file deletes corresponding directory!!!!

 

On 23 Mar, 14:25, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:

<snip>

> 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.

Guest Pegasus \(MVP\)
Posted

Re: deleting a file deletes corresponding directory!!!!

 

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

Posted

Re: deleting a file deletes corresponding directory!!!!

 

On Sun, 23 Mar 2008 06:25:19 -0700 (PDT) <jameshanley39@yahoo.co.uk> wrote:

> *From:* "jameshanley39@yahoo.co.uk" <jameshanley39@yahoo.co.uk>

> *Date:* Sun, 23 Mar 2008 06:25:19 -0700 (PDT)

>

> 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?

 

In Control Panel, Folder Options, View, Managing pairs of Web pages and folders.

Select the required option.

 

Eddy.

Guest jameshanley39@yahoo.co.uk
Posted

Re: deleting a file deletes corresponding directory!!!!

 

On 23 Mar, 16:16, e...@127.0.0.1 (Eddy) wrote:

> On Sun, 23 Mar 2008 06:25:19 -0700 (PDT)  <jameshanle...@yahoo.co.uk> wrote:

>

>

>

>

>

> > *From:* "jameshanle...@yahoo.co.uk" <jameshanle...@yahoo.co.uk>

> > *Date:* Sun, 23 Mar 2008 06:25:19 -0700 (PDT)

>

> > 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?

>

> In Control Panel, Folder Options, View, Managing pairs of Web pages and folders.

> Select the required option.

>

> Eddy.-

 

great, thanks

 

doh!

Guest jameshanley39@yahoo.co.uk
Posted

Re: deleting a file deletes corresponding directory!!!!

 

On 23 Mar, 15:46, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:

> 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 ?

Guest George
Posted

Re: deleting a file deletes corresponding directory!!!!

 

jameshanley39@yahoo.co.uk wrote:

> 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.


×
×
  • Create New...