
Launching Windows Program from DOS Program
This is an interesting idea that I haven't tried yet. Thanks for the suggestion!
In case anyone else cares, I tried the "START WINAMP.EXE" suggestion and it
failed. I did get it to work exactly as I wanted though, buy using the command:
"CMD /C WINAMP.EXE filename.mp3"
Thanks for the suggestions!
Quote:
> > However, the DOS program
> > is frozen until the user exits WinAmp. Is there some other way to get it
> > done so WinAmp continues running in it's Window while the DOS program
> Use a small .VBS wrapper script:
> Instread invoke
> SHELL "winamp"
> directly, write a file called WAMPWRAP.VBS containing
> ' Wrapper
> Option Explicit
> Dim oSh
> Set oSh = CreateObject(WScript.Shell)
> oSh.Run "winamp", 1, False
> Set oSh = Nothing
> WScript.Quit
> Especially the last parameter in the Run method drives if the program should
> be started in the fore- (True) oder background (False).
> In QBasic, just invoke this script with
> SHELL "wscript wampwrap.vbs"
> Note: Install the latest Internet Explorer to get the most recent Windows
> Script Host version.
> Andreas