Unless I'm not doing this right, the interactive mode doesn't result
in anything...
Dim sh As New Shell
sh.Mode = 2
sh.Execute "ls"
MsgBox = sh.Result // shows empty message box
Changing sh.Result to str(len(sh.Result)) returns zero
- Andrew Keller
On Feb 9, 2007, at 9:57 PM, Ryan Dary wrote:
Check out the Shell.Mode in the language reference. You probably
are wanting to use it in "Interactive" mode, but I believe the
default is Synchronous.
- Ryan Dary
[EMAIL PROTECTED] wrote:
I need to execute a series of commands in a shell on OSX, but it
seems as if whenever a command is executed, the shell starts up,
does the command, and shuts down. Whenever I try Write or
Writeline, I get a shellnotrunning exception, and all the modes
besides zero don't do anything at all. What am I doing wrong?
Thanks,
Andrew Keller
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>