Hi Jack,

Shell is just like using the command line. So anything that works, if you go
to Start and then run CMD and type something into the command line box will
also work in shell. Command line parameters can usually be Googled. Here is
the first listing I found for *windows media player command line*:

http://msdn.microsoft.com/en-us/library/aa386383(VS.85).aspx

it appears, in the case of windowsMediaPayer, you just follow the name of
the exe with the name of the file to play in quotes. So, for example, if you
typed the following into CMD (and it worked -  I didn't try it ;-):

windowsMediaPlayer.exe "myAviFileList.wpl" 

Then the equivalent shell command would be:

Get shell("start windowsMediaPlayer.exe" && quote & "myAviFileList.wpl" &
quote)

If you need to issue multiple lines of commands use && inside the quotes so:

Get shell("cd \myDirectory && start myProg.exe")

Would change directory to myDirectory and then execute myProg.exe

So, be mindful of using && to concatenate strings or inside quotes to
indicate another command line. ;-)

Aloha from Hawaii,

Jim Bufalini

> -----Original Message-----
> From: [email protected] [mailto:use-revolution-
> [email protected]] On Behalf Of Jack Rarick
> Sent: Friday, May 08, 2009 12:20 AM
> To: [email protected]
> Subject: Launching an app with a doc in XP
> 
> Thanks all in advance - as always.
> 
> My stack writes a text file with the names of avi files that is saved
> as a .wpl file. It is actually pretty cool.
> 
> But then I want to start Windows Media Player from the stack and have
> it use the .wpl file.
> 
> My question - on Windows 2000 I am able to use "Launch
> myAviFileList.wpl with windowMediaPlayer.exe and it all works great. It
> DOES NOT in XP.
> 
> And .. in XP I am able to use the shell function: get shell("start
> MyProgram.exe") and start the player but I can't figure out how to have
> it use my .wpl file that my stack wrote.
> 
> Any ideas?
> 
> Thanks again,
> 
> Jack Rarick
> Braintree Athletic Systems
> _______________________________________________
> use-revolution mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to