I have an update on this problem. The "other stuff" mentioned as part of the command line in my original message includes a file path. Initially, I did not have quotes around the file path but if the file path contained a space, I got an error. I then put quotes around the file path parameter and that's when the "C:\Program" error started occurring.
I'l mention again that if I copy and paste the exact same command out of the LC variable into a Windows command prompt, it works with no error so I'm pretty convinced this is a Livecode problem, not Windows. Has anyone seen this before? Pete lcSQL Software <http://www.lcsql.com> PS Ralph - I did try it with no quotes around the program file path but got the same "C:\Program" error On Tue, Oct 16, 2012 at 11:56 AM, Peter Haworth <p...@lcsql.com> 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