What the Shell is wrong here?

Richard Gaskin ambassador at fourthworld.com
Wed May 21 00:53:02 EDT 2003

Howard Bornstein wrote:

> I'm trying to execute a DOS shell command within my script to clear the
> read-only file attribute of a file that has been copied from a CD (I'm
> delivering the app on a CD and need to make one of the stacks writable).
> Based on previous posts on this subject, I'm using a command that
> evaluates to:
> get shell ("attrib -r" && "C:\Documents and Settings\IFTF\My
> Documents\Consumer Segmentation\resources\Process Guide Steps.rev")
> I've proven that the path is correct for the file I'm trying to affect.
> If I type this command into the Message box however, I get this error
> message:
> Script Compile Error.
> Error Description: Script: missing "" after literal

Does this work?:

 get shell ("attrib -r" && quote&"C:\Documents and Settings\IFTF\My
Documents\Consumer Segmentation\resources\Process Guide Steps.rev"&quote)

 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.2: Publish any database on any site
 Ambassador at FourthWorld.com       http://www.FourthWorld.com
 Tel: 323-225-3717                       AIM: FourthWorldInc

More information about the use-livecode mailing list