Re: Intresting behavior

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Actually it's not 'Explorer' it's the Shell File Operations.

Go read the doc on SHFileOperation and more specifically on SHFILEOPSTRUCT.
There is even a flag to NOT move the folder with the files.

As for BigFish's original question, NO you can't make this association for
anyother file type, MS has hard coded this into the SHFileOperation for .htm
and .html file extensions, and it' only present in version 5.0 (and greater)
of shell32.dll

If you are too lazy to read the doc, here's the remarks section from
SHFileOperation.

You can see how they have special cased netowk operations for Docs and Pics,
you can also see it's ShellFileOperation that moves things to the Recycle
bin, and check out the fact that the word 'files' in the html connected
folder has to be in the 'local specific language'... "Oh what tangled tales
we weave, when we frist start to deceive"....

Remarks
You should use fully-qualified pathnames with this function. Using it with
relative path-names is not thread-safe.

With two exceptions, you cannot use SHFileOperation to move special folders
from a local drive to a remote computer by specifying a network path. The
exceptions are the MyDocs and MyPics folders (CSIDL_PERSONAL and
CSIDL_MYPICTURES, respectively).

When used to delete a file, SHFileOperation will attempt to place the
deleted file in the Recycle Bin. If you wish to delete a file and guarantee
that it will not be placed in the Recycle Bin, use DeleteFile.

If a copy callback handler is exposed and registered, SHFileOperation will
call it unless you set a flag such as FOF_NOCONFIRMATION in the fFlags
member of the structure pointed to by lpFileOp. See ICopyHook::CopyCallback
for details on implementing copy callback handlers.

File deletion is recursive unless you set the FOF_NORECURSION flag in
lpFileOp.

With Microsoft® Windows 2000® and later, it is possible to connect an HTML
file with a folder containing related files such as GIF images or style
sheets. If file connection is enabled, when you move or copy the HTML file,
all of the files in the folder will be moved or copied as well. Conversely,
if you move the folder with the related files, the HTML file is also moved.

The HTML file must have a .htm or .html extension. You create the connection
to the related files by placing them in a subfolder of the folder containing
the HTML file. The folder must have the name of the HTML file followed by "
files". For example, if the HTML file is MyFile.htm, the folder should be
named "MyFile files". Any files you place in the "MyFile files" subfolder
will be connected to MyFile.htm.

File connection is enabled by default. It can be disabled by adding a
REG_DWORD value, NoFileFolderConnection, to the
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer registry key.
Setting NoFileFolderConnection to 1 disables file connection. If the value
is set to zero or is missing, file connection is enabled.

To move only specified files from a group of connected files, set the FOF_
NO_CONNECTED_ELEMENTS flag in the fFlags member of the structure pointed to
by lpFileOp.

Note that the use of a folder with a name like "MyFile files" to define a
connection may not be valid for localized versions of Windows NT. The term
"files" may need be replaced by the equivalent word in the local language

Dave

"seth" <seth@xxxxxxxx> wrote in message
news:uXm713JwFHA.1028@xxxxxxxxxxxxxxxxxxxxxxx
>i understand the question and provided an answer
> it is behaviour with the OS. it has nothing to do with the file system
> if i use file manager (from nt 4) to move the file or folder, it only
> moves that item and not both items, compared to explorer where if u delete
> or move the file, the folder and everything it it goes with it
> it is not a feature with the file system, it is the way explorer handles
> it
>
> "BigFish" <swheeler@xxxxxxxxxxxxxx> wrote in message
> news:eyI7BhHwFHA.3256@xxxxxxxxxxxxxxxxxxxxxxx
>> Do you not understand the question ? Can anyone suggest group where
>> perhaps
>> someone will understand my orginal question.
>>
>> "seth" <seth@xxxxxxxx> wrote in message
>> news:%239VzB2tvFHA.3932@xxxxxxxxxxxxxxxxxxxxxxx
>>> i seem to remember someone posting a reply a few days ago
>>> this is default behaviour in windows; in explorer, go to tools -> folder
>>> options -> view
>>> and under "managing pairs of web pages and folders" select "show both
>> parts
>>> and manage them individually"
>>> that way, when you save a complete web page, you can delete the htm
>>> file,
>>> and the folder will stay
>>>
>>> "BigFish" <swheeler@xxxxxxxxxxxxxx> wrote in message
>>> news:%23nuEhPtvFHA.3860@xxxxxxxxxxxxxxxxxxxxxxx
>>> > Still no answer to this seemingly simple question; is there anyone
>>> > here
>>> > that
>>> > can answere this? Is this the right newsgroup? Any MVPS follow on this
>>> > group? You guys should have the answer...
>>> > BigFish
>>> >
>>> > "BigFish" <swheeler@xxxxxxxxxxxxxx> wrote in message
>>> > news:OeVhtQgvFHA.464@xxxxxxxxxxxxxxxxxxxxxxx
>>> >> Hi - I noted something I had never see before and am trying to figure
>> out
>>> >> the magic. On 2003 Server / NTFS I had saved a web page; this page
>>> >> had
>> an
>>> >> html page and a folder with images, no problem. But, I just selected
>> the
>>> >> htm file and copied it to a new folder and magically the image folder
>> was
>>> >> also copied. Very cool. To verify, I deleted the htm file and the
>>> >> image
>>> >> folder was also deleted. So these two are somehow linked. What is the
>>> >> technology that enables this? It does not seem to be softlinks as
>>> >> those
>>> >> seem to be more about having a name that refers to a different
>>> >> object.
>>> >> Here file system objects are "grouped" so that what happens to one
>> member
>>> >> happens to the group as a whole. Also, is there additional metadata
>>> >> stored in maybe an alternate file stream ? Any sample code for
>>> >> digging
>>> >> into this stuff?
>>> >>
>>> >> Thanks
>>> >> BigFish
>>> >>
>>> >
>>> >
>>>
>>>
>>
>>
>
>


.



Relevant Pages

  • [OT] Re: File + Folder Links
    ... NickP wrote: ... an HTML file gets created with a folder that is linked to the folder, if you delete one, the other gets deleted automatically etc. ... This particular connection between mysave.html and a mysave.files directory is explicitly coded into Windows. ...
    (microsoft.public.vc.language)
  • Re: [OT] Re: File + Folder Links
    ... Explorer, an HTML file gets created with a folder that is linked to the ... This particular connection between mysave.html and a mysave.files ...
    (microsoft.public.vc.language)
  • Re: Issues with ActiveSync 4.5 beta
    ... Did you do the soft reset while you where still docked above or did you remove the rx1950 from the dock to do the soft reset? ... I'd suggest copying your files to a safe backup location (a folder) on your PC using File Explorer the next time you dock, you should also copy them using pocket file explorer to a storage card on your Pocket PC before docking again just to be extra safe. ... When I connected the PDA again, the WM_nestor folder has disappeared and AS asked me to create a new profile... ... If I try to force the connection, through File>Syncronize, the ...
    (microsoft.public.pocketpc.activesync)
  • Re: missing global catalog
    ... Ethernet adapter SonicWALL Virtual Adapter: ... Ethernet adapter Local Area Connection: ... The name of my dns zone is cinco.appdancer.com and it allows dynamic updates. ... The _msdcs.gc folder did not exist. ...
    (microsoft.public.windows.server.dns)
  • Re: Issues with ActiveSync 4.5 beta
    ... this time the Connection error did not appear but when I ... I did disconect my PDA, although I tried again, just in case. ... I did a hard reset, then sync and AS created a new WM_nestor folder. ...
    (microsoft.public.pocketpc.activesync)