How to pass a path with spaces to windows shell start?

Mark Smith lists at futilism.com
Thu Jan 8 13:30:55 EST 2009


I think quoting should help:

get shell("start" && quote & tProg & quote)

Best,

Mark

ps. Ken Ray gave us this function 'q' which is so useful to have in a  
library somewhere:

function q pString
   return quote & pString & quote
end q

On 8 Jan 2009, at 16:53, Tiemo Hollmann TB wrote:

> Hello,
>
> Once again for the windows guys: how do I pass a path with spaces,  
> like
> ".\program files\..." to a windows shell start?
>
> get shell("start" && tProg)
>
> works fine, as far as tProg has no spaces. When using e.g. C:\program
> files\foo, windows sees only C:\program as the first parameter (the  
> prog to
> be started). Setting the whole path into quotes doesn't works either,
> because that would be a window title for the start command.
>
> Hmmm must be something very basic what I don't see.
>
> Thanks for any hint
>
> Tiemo
>
>
>
>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the Use-livecode mailing list