Orus Posted March 1, 2010 Share Posted March 1, 2010 Hi,I have created a .ini file in one of my folders and - in order to give it a customised icon - I added the following line:[.ShellClassInfo]ConfirmFileOp=1IconFile=..\Custom.icoIconIndex=0The icon Custom.ico resides in the parent folder. Thus I created a relative path using ..\ in order to link to the icon contained one level up in the hierarchy. It works just fine!The problem is that I would like to link to an icon wich must be TWO levels up and not just one from the foder containing the .ini file. I tried to modify as follows but it did not work:[.ShellClassInfo]ConfirmFileOp=1IconFile=..\..\Custom.icoIconIndex=0Does anyone know why ..\..\ is not the right solution? Or what am I missing in the code?Thank you. Link to comment Share on other sites More sharing options...
jaclaz Posted March 1, 2010 Share Posted March 1, 2010 Well, it's strange, it seems like working for me with "Desktop.ini" jaclaz Link to comment Share on other sites More sharing options...
Orus Posted March 1, 2010 Author Share Posted March 1, 2010 Well, it's strange, it seems like working for me with "Desktop.ini" jaclazjaclaz could you please show me your desktop.ini code? Link to comment Share on other sites More sharing options...
jaclaz Posted March 1, 2010 Share Posted March 1, 2010 Sure, it's identical to yours:Strecture:\bootfiles\\bootfiles\custom.ico\bootfiles\test\test\\bootfiles\test\test\Desktop.iniContents of \bootfiles\test\test\Desktop.ini[.ShellClassInfo]ConfirmFileOp=1IconFile=..\..\custom.icoIconIndex=0I simply used the GUI interface of XP to have the selected folder of the type "documents" then selected the icon I wanted to show, the Desktop.ini file inside the folder was:[.ShellClassInfo]IconFile=%SystemDrive%\bootfiles\custom.icoIconIndex=0I manually changed the path to the relative one and added the line that was in your example "ConfirmFileOp=1" (just to make sure it was not that part the problem).jaclaz Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now