Thanks once again, George, for your explanations
Regards,
Arpan

Actually I used to experiment with this Web View and had much more functionality then just changing the icon. You are right I gave you more then was necessary. I just knew what I gave you worked and didn't want to take the time with a minimal set there.
Everything you see in [] is like a section of the ini file. The stuff under them are the parameters you set for that option. Icon index is when you have more then one icon in the IconFile. You could use a dll here and then IconIndex would become necessary. The rest are just left over stuff for custmizing the appearance of the folder when selected.
I believe Web View had alot of potential. The only trouble with it is that it rarely worked. You can see how it fails quite easily. Reboot. Go to C:\WINNT\system32 and select that folder. You will notice you get a nag "Do you want to show the contents of this folder?" Click "Show Files." Now move out of this folder somewhere else, say C:\Program Files. Next go back and select C:\WINNT\system32. Note you will not get the nag. This is an error and should not occur. The only way to get the nag back is to reboot. So Microsoft gave up on that idea and it is rarely documented anymore anywherre. The expert on this was\is Dino Esposito. He has a few articles at Microsoft that explain this Web View in more detail.
If you look at folder.htt you can see how the scripting is done with desktop.ini in C:\program Files and in C:\WINNT.
--
George Hester
__________________________________
Thanks, George, for your prompt response. Your suggestion works great! I guess the last 4 lines are optional, aren't they? I deleted the last 4 lines but the folder still gets represented by the user-defined icon!!!! What exactly do the last 5 lines do? Also have you assigned the text background color as CFCCFC or is that the default color or has the color CFCCFC been assigned automatically? Moreover changing the text background color doesn't make any difference! Why so?
Thanks once again for your guidance.
Regards,
Arpan
Yes in Windows 2000 we have what is called Web View. If you want to change the folder (say C:\Hold) in the Hold folder you would put a file called desktop.ini in there. This is a text file and in it you would enter:
[.ShellClassInfo]
IconFile=0789718987.ico
IconIndex=0
ConfirmFileOp=0
[{BE098140-A513-11D0-A3A4-00C04FD706EC}]
IconArea_TextBackground=0x00CFCCFC
Attributes=1
Put desktop.ini in C:\Hold.
This file make it hidden. attrib +h c:\hold\desktop.ini in command prompt (Start | Run | cmd | OK | cd\)
Now my icon which is also in the Hold folder is called 0789718987.ico. Also you can see that the background color for the IconArea is CFCCFC.
Using Windows Explorer right-click the Hold folder choose Properties and then check Read-Only then Apply. Apply changes to this folder only | OK. You should now see the folder icon change to that of your icon.
--
George Hester
__________________________________
Can the icon (yellow folder) which represents a Windows directory be changed to some other icon WITHOUT creating a shortcut of that directory?
Thanks,
Arpan