Mike,

I've been wrestling with this again this morning and I'm unable to get the icon to display at all, let alone concern myself with paths.

I'm using revCopyFolder to create the folder I want by duplicating an existing folder with the .ico file in it. RevCopyFolder duplicates the folder to another location and it includes the .ico file in the folder but it excludes the dektop.ini file. I can create one from within Livecode but it doesn't work. I can see why, too. If I right-click it, choose Properties and go to the Details tab I can see that the Desktop.ini file I made in Livecode has Attributes of "A" while the one Windows 8.1 make (when I manually set a folder icon in the folder's properties window) has Attributes of "HSA". Sounds like some sort of housing authority:)

I've tried using RevCopyFile to duplicate the Desktop.ini file with the proper attributes to my new folder but it also fails. Evidently Windows 8.1 blocks this, even though there's no other Desktop.ini file present yet.

So at this point I'm stuck unless I can find some way within Livecode to set the Attributes of the Desktop.ini file I create to "HSA".

Any ideas?

On 4/16/2015 9:41 AM, Mike Bonner wrote:
heres that link. http://forums.livecode.com/phpBB2/viewtopic.php?t=1745

On Thu, Apr 16, 2015 at 7:38 AM, Mike Bonner <bonnm...@gmail.com> wrote:

It shouldn't matter where you store the icon. In fact, it'd be better if
you created a folder for your icons somewhere like the app support
directory or some such.  Then you can point to the icon file, and if you
move the folder around, it shouldn't matter.
Heres a link to a forum post that uses env variables to point to an icon
location.  It points to a folder stored in a folder on the desktop, but it
shouldn't matter where the folder is as long as you can point to it
explicitly. (or in the case of the forum post, point to it at a location
relative to the user)
If you were wanting to set things up where all users see thte icon, then
inside the folder, or some place not relative to the specific user is the
way to go.  Network shares would be complicated.  I wonder... if you have
the .ico file in the folder, and your desktop.ini references it this way:
.\myicon.ico
does it work?  It would be nice if you could start relative to the folder
( . ) and go from there.

Also, you can set the attributes of your icon file to system/hidden so it
doesn't show in the top level.  Of course people like me have settings so
that it will show anyway but.. /shrug

On Thu, Apr 16, 2015 at 10:09 AM, Ray <r...@linkit.com> wrote:

Scott thanks for your idea on this but I think I'll try something else in
light of the possible licensing ramifications which, incidentally, I
appreciate you pointing out.

At this point I'm unable to get any icons, ico png or otherwise, to
display by creating the .ini file myself.  I have noticed that when I set
it up through the properties tabs the automatically generated .ini file
looks a little different:
    [ViewState]
    Mode=
    Vid=
    FolderType=Pictures
    Logo=C:\Users\RayAc\Desktop\Test\MyIcon.png

Nonetheless, when I create this manually it doesn't work.  And I haven't
even begun to look at the Mac side yet.

But there's hope!  I've seem to have success setting up the folder
manually, leaving the image file in the folder, treating the whole folder
as a template of sorts and using revCopyFolder to duplicate it every time I
need a new one.

I'm going to try that as a work-around and see how it goes.

Many thanks!


On 4/15/2015 7:13 PM, Mike Bonner wrote:

Give it the full path.

On Wed, Apr 15, 2015 at 12:50 PM, Mark Schonewille <
m.schonewi...@economy-x-talk.com> wrote:

  Hi Ray,
I've found the link I got the example from (IIRC):

https://msdn.microsoft.com/en-us/library/windows/desktop/
cc144102%28v=vs.85%29.aspx

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi

LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 4/16/2015 02:01, Ray wrote:

  OK Mark - I've experimented a little doing this:
Made a text file named Desktop.ini

Saved the following content in it:
[.ShellClassInfo]
IconFile=MyIcon.ico
IconIndex=0
InfoTip=Some sensible information.

Created a folder on the Windows desktop named Test

Moved both the file and a .ico file named MyIcon into the folder

This doesn't change the appearance of the folder, although it does
change the appearance of the text file.  It puts a little gear on it.

Am I missing something?

On 4/15/2015 1:43 PM, Mark Schonewille wrote:

  Ray,
It is a text file. I gave you an example of the text. LiveCode can
create such text files. The file should be saved inside the folder of
which you want to change the icon.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi

LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 4/16/2015 01:37, Ray wrote:

  Mark  -  thanks for these tips but I'm afraid I'm not quite following
you.

Should the text file have any text in it?  Which folder should I
save it
in?  And finally, how do I set the settings you've outlined from
within
Livecode?  I guess these things are delving into an area of Livecode
I've never used.

Thanks,

Ray

On 4/15/2015 12:56 PM, Mark Schonewille wrote:

  Hi Ray,
Make a text file with Notepad. Save it in the folder as Desktop.ini.
Use the following settings:

[.ShellClassInfo]
IconFile=Folder.ico
IconIndex=0
InfoTip=Some sensible information.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi

LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 4/15/2015 23:30, Ray wrote:

  Does anybody know of a way, from within Livecode, to create a
folder
and give it it's own custom display on the desktop?  I'd imagine
this
would be done with an .ico file.  I'd like to do this for both Mac
and Windows.

I've looked through the RunRev store and haven't found any
extensions
which do this.  Maybe through a command-line somebody has written?


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


  _______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


  _______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

  _______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to