Using Shell to run a DOS program

Alejandro Tejada capellan2000 at gmail.com
Mon Jan 17 00:31:42 EST 2011


Hi all,

I have been trying, without sucess, to run
the program CRC32.EXE using Shell
from LiveCode.

This is the code that I am using:

put "C:\crc32.exe CRC32INPUT >CRC32OUTPUT.txt" into tCommand
set the hideconsolewindows to true
get shell (tCommand)
get URL "file:C:\CRC32OUTPUT.txt "
put it

Notice that I had already created the files
named CRC32INPUT and CRC32OUTPUT.txt

On the command prompt it works,
but not inside LiveCode.

I am testing this using Rev 2.8 and 4.0
using this DOS program
http://www34.brinkster.com/dizzyk/download/crc32.zip

downloaded from this page:
http://www34.brinkster.com/dizzyk/crc32.asp

Thanks in advance!

Al




More information about the use-livecode mailing list