Making ex cd win files writeable using get shell
janschenkel at yahoo.com
Sun Apr 27 04:36:01 CDT 2003
--- 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, and have a few
> shiny cd beermats as a result. Leaning heavily on
> Ken & miscdas et al I
> If the platform is "Win32" then
> get the directory
> put it &"/affin2pics/affinity results.rev" into
> get shell ("attrib -r" && tFileName)
> end if
> On opening, an ugly DOS-esque window opens (the
> 'console' that was spoken
> of?) and disappears. Thanks to sluggardly VPC, I
> *think* I can see that
> nothing appears in it. The results file remains
> stubbornly locked.
> 3 questions
> 1 Any ideas why this isn't working?
> 2 Assuming I can get it working, any way of hiding
> the console?
> 3 Why isn't this a built in thing? Call me simple,
> but I thought setting
> cantmodify set writeability, and assumed it was at
> OS level.
> Best wishes,
> David Glasgow
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)
To solve your other problem (the ugly DOS-window) :
set the hideConsoleWindows to true
Hope this helped,
"As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld)
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
More information about the use-livecode