Making ex cd win files writeable using get shell
miscdas at boxfrog.com
miscdas at boxfrog.com
Sun Apr 27 05:35:01 EDT 2003
[snip}
Jan Schenkel writes:
> --- DVGlasgow at aol.com wrote:
>> Hi folks
>>
>> I wanted to run something on standalone start up to
>> make sure a results
>> stack is writable.I am still struggling to get this
>> to work,
>>
>> If the platform is "Win32" then
>> get the directory
>> put it &"/affin2pics/affinity results.rev" into
>> tfilename
>> get shell ("attrib -r" && tFileName)
>> end if
>> The results file remains
>> stubbornly locked.
>>
>>
>> David Glasgow
>
> Hi David,
>
> In this particular case, you're trapped by the fact
> that DOS can't handle names with spaces in them ;
> you'll have to put quotes around the filename.
> if the platform is "Win32" then
> put quote & the directory & \
> "/affin2pics/affinity results.rev" & \
> quote into tfilename
> get shell ("attrib -r" && tFileName)
> end if
>
> To solve your other problem (the ugly DOS-window) :
> set the hideConsoleWindows to true
>
> Hope this helped,
>
> Jan Schenkel.
>
> =====
It is also a good idea to include the Results function in your handler. It
would have provided a good clue as to what went wrong.
miscdas
More information about the use-livecode
mailing list