Custom Desktop Folders

Mike Bonner bonnmike at gmail.com
Thu Apr 16 11:47:45 EDT 2015


Looks like you don't need the full path after all, as long as the icon is
in the same directory.

Can't try on xp, but setting +s and +h on the desktop.ini should cover both
bases.   Sorry for the spam flurry.

On Thu, Apr 16, 2015 at 9:43 AM, Mike Bonner <bonnmike at gmail.com> wrote:

> Looks like setting the folder to read only does NOT make it impossible to
> write into the folder. If you use the properties dialog, that is not the
> case, so using attrib is the way.
>
> On Thu, Apr 16, 2015 at 9:41 AM, Mike Bonner <bonnmike at gmail.com> wrote:
>
>> h is the hidden attribute. so +h should hide it.  Weird.  Going to try it
>> real quick (win 7)..
>>
>> Ok. I got the attribs to set by doing them one at a time.  Not sure why 2
>> at once doesn't work.
>>
>> I also read that the folder must be set to read only.
>>
>> SO I did attrib +r to the folder and poof. Icon.
>>
>> On Thu, Apr 16, 2015 at 3:20 PM, Ray <ray at linkit.com> wrote:
>>
>>> Mike - I've eliminated all spaces in the path but thanks, that's always
>>> a good thing to check.
>>>
>>> At this point nothing I do flips the Attributes from "A" to "HSA". I've
>>> changed the minus to a plus sign and tried Klaus' concatenation syntax but
>>> still no change in the Attributes.
>>>
>>> Maybe I should also be changing the visibility of the file first. When I
>>> set the folder icon manually the system does that.  Do you know of a way to
>>> change visibility via the shell function?
>>>
>>> On 4/16/2015 11:05 AM, Mike Bonner wrote:
>>>
>>>> oh yep, and as klaus says, if theres a space somewhere in the path,
>>>> you'll
>>>> need to force quotes around it, or use shortfilepath() to obviate the
>>>> need.
>>>>
>>>>
>>>> On Thu, Apr 16, 2015 at 9:03 AM, Klaus major-k <klaus at major-k.de>
>>>> wrote:
>>>>
>>>>  Hi Ray,
>>>>>
>>>>> did you try with QUOTES?
>>>>>
>>>>>  Am 16.04.2015 um 23:00 schrieb Ray <ray at linkit.com>:
>>>>>>
>>>>>> Klaus - thanks for the idea.  Just to check my method of
>>>>>> concatenation,
>>>>>>
>>>>> the exact command I'm using is:
>>>>>
>>>>>>       get shell("attrib -HSA "&desktopIniPath&"")   -- where
>>>>>>
>>>>> desktopIniPath is the path to the file
>>>>>
>>>>> get shell("attrib -HSA "& QUOTE & desktopIniPath & QUOTE)
>>>>>
>>>>>  It doesn't work and I see no change in the file's Attributes, Type or
>>>>>>
>>>>> Size.  Livecode returns nothing in the result.
>>>>>
>>>>>> ...
>>>>>>
>>>>> Best
>>>>>
>>>>> Klaus
>>>>>
>>>>> --
>>>>> Klaus Major
>>>>> http://www.major-k.de
>>>>> klaus at major-k.de
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> use-livecode mailing list
>>>>> use-livecode at 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 at 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 at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>
>>
>>
>



More information about the use-livecode mailing list