Re: Mark a file as read-only

2010-05-11 Thread Chipp Walters
maybe the R should be lowercase, but I don't think it matters.

On Wed, May 12, 2010 at 12:37 AM, Chipp Walters  wrote:

> Something like this:
>
> answer file "choose a file"
> if the result is "cancel" or it is "" then exit to top
> put it into tPath
> put shortFilePath(tPath) into tPath
> replace "/" with "\" in tPath
> put "attrib +R " & tPath into tDosCommand
> set the hideConsoleWindows to true
> put shell (tDosCommand) into tErr
> if tErr is not empty then answer tErr
>
> Haven't tested it, but it should work.
>
>
>
>
> On Tue, May 11, 2010 at 11:50 PM, Bill Vlahos  wrote:
>
>> Chipp,
>>
>> Do it like this?
>> if the platform is "Win32" then shell("attrib +r a:lockthisfile.txt")
>>
>> Thank you,
>> Bill Vlahos
>> _
>> InfoWallet (http://www.infowallet.com) is about keeping your important
>> life information with you, accessible, and secure.
>>
>> On May 11, 2010, at 7:39 PM, Chipp Walters wrote:
>>
>> > http://www.csulb.edu/~murdock/attrib.html
>> >
>> > attrib +r a:lockthisfile.txt
>> >
>> > You can shell out to it
>> >
>> > Chipp Walters
>> > CEO, Shafer Walters Group, Inc
>> >
>> > On May 11, 2010, at 8:56 PM, Bill Vlahos  wrote:
>> >
>> >> I know how to set the rights on Mac and Linux to mark a file as
>> read-only.
>> >>
>> >> How do I do that in Windows?
>> >>
>> >> Can I do it at all on a USB drive? I believe that files on USB drives
>> ignore some settings for ownership, etc.
>> >>
>> >> Bill Vlahos
>> >> _
>> >> InfoWallet (http://www.infowallet.com) is about keeping your important
>> life information with you, accessible, and secure.
>> >>
>> >> ___
>> >> use-revolution mailing list
>> >> use-revolution@lists.runrev.com
>> >> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> >> http://lists.runrev.com/mailman/listinfo/use-revolution
>> > ___
>> > use-revolution mailing list
>> > use-revolution@lists.runrev.com
>> > Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> > http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Mark a file as read-only

2010-05-11 Thread Chipp Walters
Something like this:

answer file "choose a file"
if the result is "cancel" or it is "" then exit to top
put it into tPath
put shortFilePath(tPath) into tPath
replace "/" with "\" in tPath
put "attrib +R " & tPath into tDosCommand
set the hideConsoleWindows to true
put shell (tDosCommand) into tErr
if tErr is not empty then answer tErr

Haven't tested it, but it should work.




On Tue, May 11, 2010 at 11:50 PM, Bill Vlahos  wrote:

> Chipp,
>
> Do it like this?
> if the platform is "Win32" then shell("attrib +r a:lockthisfile.txt")
>
> Thank you,
> Bill Vlahos
> _
> InfoWallet (http://www.infowallet.com) is about keeping your important
> life information with you, accessible, and secure.
>
> On May 11, 2010, at 7:39 PM, Chipp Walters wrote:
>
> > http://www.csulb.edu/~murdock/attrib.html
> >
> > attrib +r a:lockthisfile.txt
> >
> > You can shell out to it
> >
> > Chipp Walters
> > CEO, Shafer Walters Group, Inc
> >
> > On May 11, 2010, at 8:56 PM, Bill Vlahos  wrote:
> >
> >> I know how to set the rights on Mac and Linux to mark a file as
> read-only.
> >>
> >> How do I do that in Windows?
> >>
> >> Can I do it at all on a USB drive? I believe that files on USB drives
> ignore some settings for ownership, etc.
> >>
> >> Bill Vlahos
> >> _
> >> InfoWallet (http://www.infowallet.com) is about keeping your important
> life information with you, accessible, and secure.
> >>
> >> ___
> >> use-revolution mailing list
> >> use-revolution@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-revolution
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Mark a file as read-only

2010-05-11 Thread Bill Vlahos
Chipp,

Do it like this?
if the platform is "Win32" then shell("attrib +r a:lockthisfile.txt")

Thank you,
Bill Vlahos
_
InfoWallet (http://www.infowallet.com) is about keeping your important life 
information with you, accessible, and secure.

On May 11, 2010, at 7:39 PM, Chipp Walters wrote:

> http://www.csulb.edu/~murdock/attrib.html
> 
> attrib +r a:lockthisfile.txt
> 
> You can shell out to it  
> 
> Chipp Walters
> CEO, Shafer Walters Group, Inc
> 
> On May 11, 2010, at 8:56 PM, Bill Vlahos  wrote:
> 
>> I know how to set the rights on Mac and Linux to mark a file as read-only.
>> 
>> How do I do that in Windows?
>> 
>> Can I do it at all on a USB drive? I believe that files on USB drives ignore 
>> some settings for ownership, etc.
>> 
>> Bill Vlahos
>> _
>> InfoWallet (http://www.infowallet.com) is about keeping your important life 
>> information with you, accessible, and secure.
>> 
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Mark a file as read-only

2010-05-11 Thread Chipp Walters
http://www.csulb.edu/~murdock/attrib.html

attrib +r a:lockthisfile.txt

You can shell out to it  

Chipp Walters
CEO, Shafer Walters Group, Inc

On May 11, 2010, at 8:56 PM, Bill Vlahos  wrote:

> I know how to set the rights on Mac and Linux to mark a file as read-only.
> 
> How do I do that in Windows?
> 
> Can I do it at all on a USB drive? I believe that files on USB drives ignore 
> some settings for ownership, etc.
> 
> Bill Vlahos
> _
> InfoWallet (http://www.infowallet.com) is about keeping your important life 
> information with you, accessible, and secure.
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution