Hi Guys,
Using OsProcessStarter to run VLC works if I use the desktop link for the command. When I try to use the .exe that the link points to, it doesn't work. I tried setting the #workingDirectory: but no joy there.
I haven't figured out how to direct any errors where I can see them. I'm not sure any are reported.
Lou
This works:
[ | vlcCall chimePlayer |
vlcCall := OrderedCollection new.
vlcCall
add: '"c:\Users\Public\Desktop\VLC media player.lnk"';
add: 'c:\KSCVAST\WiFiClock\WiFiClock\sounds\Bong.wav'. "path to the sound file."
vlcCall add: 'vlc://quit'.
chimePlayer := OsProcessStarter new.
chimePlayer command: vlcCall.
chimePlayer shellMode: OsProcessConstants::ProcShellCmd.
chimePlayer inspect.
chimePlayer start.
] fork.
This doesn't:
[ | vlcCall chimePlayer |
vlcCall := OrderedCollection new.
vlcCall
add: '"C:\Program Files\VideoLAN\VLC\vlc.exe"';
add: 'c:\KSCVAST\WiFiClock\WiFiClock\sounds\Bong.wav'. "path to the sound file."
" vlcCall add: 'vlc://quit'."
chimePlayer := OsProcessStarter new.
chimePlayer command: vlcCall.
chimePlayer workingDirectory: 'C:\Program Files\VideoLAN\VLC'.
chimePlayer runInShell: true.
chimePlayer shellMode: OsProcessConstants::ProcShellCmd.
chimePlayer inspect.
chimePlayer start.
] fork.