Using Shell to run a DOS program

David C. davidocoker at
Mon Jan 17 16:04:36 EST 2011

I just noticed that I pasted a non-working version in my earlier
message. Try this one, which works on this end:

on mouseUp
-- must set the folder location to the same as crc32.exe
   set the defaultFolder to "C:\crc32\"
   put "crc32.exe" into tCommand
   put " readme.txt > c:\crc32\output.txt" into tArg
   put tCommand & tArg into tShellText
   set the hideconsolewindows to true
   get shell (tShellText)
   get URL "file:c:\crc32\output.txt"
   put it -- put in message box
   --put it into fld "Field1" -- put in field
end mouseUp

Sorry about that...
Watch for line wrap on the commenting.

Best regards,
David C.

More information about the Use-livecode mailing list