Shell command problem on Windows 7

Ralph DiMola rdimola at
Tue Oct 16 15:01:49 EDT 2012


Lose the quotes around the program name and you should be OK

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at] On Behalf
Of Peter Haworth
Sent: Tuesday, October 16, 2012 2:57 PM
To: How to use LiveCode
Subject: Shell command problem on Windows 7

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

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!

lcSQL Software <>
use-livecode mailing list
use-livecode at
Please visit this url to subscribe, unsubscribe and manage your subscription

More information about the Use-livecode mailing list