I have the following command I want to execute on OS X:
Dim TheTestCommand As String
TheTestCommand = "wszst"
Dim ToolShell As New Shell
ToolShell.Execute(TheTestCommand)
MsgBox ToolShell.Result
It works great on Windows. However, it does not on OS X. I have executed the command manually (via Terminal) and it does indeed work, even when I use “bash” and then “wszst”.
On OS X you dont get a restored environment so the PATH environment variable is probably not set
Use a fully qualified path to the command you want to run
Sorry for the really late reply, but have figured out what do to:
#If TargetMacOS and TargetLinux //Tool installs in same place on both Linux and OS X.
Dim sh As New Shell
sh.Execute("/usr/local/bin/wszst", "extract", SzsManagerWindow.UniversalFilePath.Text)
#ElseIf TargetWin32
Dim sh As New Shell
sh.Execute("wszst", "extract", SzsManagerWindow.UniversalFilePath.Text)
#Endif