maybe the R should be lowercase, but I don't think it matters. On Wed, May 12, 2010 at 12:37 AM, Chipp Walters <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 >> >> [email protected] >> >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> >> http://lists.runrev.com/mailman/listinfo/use-revolution >> > _______________________________________________ >> > use-revolution mailing list >> > [email protected] >> > Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-revolution >> >> _______________________________________________ >> use-revolution mailing list >> [email protected] >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution >> > > _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
