Short Names/Dos Names/8.3

Klaus Major klaus at major-k.de
Fri Feb 13 11:12:15 EST 2004


Hi Stu,

> Thanks Klaus but that didn't work.
>
> get shell("attrib -r" && "C:\Program Files\Science Suite\*.*" &&  "/S  
> /D")
> fails but when I shorten it to
> get shell("attrib -r" && "C:\Progra~1\Scienc~1\*.*" &&  "/S  /D")
> it works.
>
> I could take a chance and just change the long file names in rev but I 
> would
> get caught where someone had two paths such as:
> C:\Program Files\Science and Man
> and
> C:\Program Files\Science Suite
>
> which would both translate into C:\Program Files\Scienc~1
>
> However Windows would name them 1 and 2.
>
> I suppose the long winded solution is to check for the duplicate names 
> but
> then I still wouldn't know which was 1 and which was 2 from 
> Windows(DOS)
> point of view.
>
> Thanks for your help.
>
> Stu

i think Mr. X gave the correct answer!

get shell("attrib -r" && quote & "C:\Program Files\Science Suite\*.*" &
quote && "/S /D")

ONE line, of course

I knew it was something about quotes and spaces... ;-)


Regards

Klaus Major
klaus at major-k.de
www.major-k.de



More information about the use-livecode mailing list