Page 1 of 1

Shell Command just doesn't want to work

Posted: Tue Aug 02, 2011 3:58 am
by BarrySumpter
Again something so simple is so hard to sort out in livecode.
Why can't there be a simple sample that just works.



Code: Select all

on mouseUp
   local tCommand
   
   put "notepad.exe" into tCommand
   get shell(tCommand)
   put it
   
end mouseUp
Error on get shell:
button "cmd2": execution error at line n/a (shell: can't run shell command) near "c: /C notepad.exe"

Re: Shell Command just doesn't want to work

Posted: Tue Aug 02, 2011 4:26 am
by BarrySumpter
past put into Messge Box - works!
simple run in IDE same error
save - tested same error
exited LC - tested same error
rebooted - tested works!
can't tell you how agrovating that I spent so long on something so simple.