I tried this: on mouseUp pMouseBtnNo put quote & "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRD32.exe" & quote into tCommand put shell(tCommand) into tResult answer tResult end mouseUp
I saved a windows standalone and copied it to my XP VM. I don't use Vista or 7. It launches Acrobat. Unless there is something specific with the windows 7 shell, I think you must be mistaken about the string containing the quotes. Bob On Oct 16, 2012, at 11:56 AM, Peter Haworth wrote: > I have a variable tCommand whose contents are: > > "C:\Program Files (x86)\GnuWin32\bin\diff.exe" ....<other stuff> > > To clarify, the quote chars are in tCommand > > If I execute it with > > put shell(tCommand) into temp > > ... temp contains "'C:\Program' is not recognized as an internal or > external command" > > If I copy and paste the contents of tCommand into a Windows Command Prompt > window, it works fine. > > It seems like LC is somehow swallowing the quote characters around the > program file name, causing the space after "Program" to be the end of the > program file name. > > I'm probably missing something obvious but can't figure out what! > > > Pete > lcSQL Software <http://www.lcsql.com> > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode