Shell Command just doesn't want to work

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Shell Command just doesn't want to work

Post by BarrySumpter » Tue Aug 02, 2011 3:58 am

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"
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Shell Command just doesn't want to work

Post by BarrySumpter » Tue Aug 02, 2011 4:26 am

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.
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

Post Reply