PDA

View Full Version : fscommand and opening an applications



Titoqan
May 28th, 2002, 04:02 AM
Hello,

I am working on putting a portfolio on CD and would like to include a video. The video I want to be played by windows media player, but I seem to be missing something. I have a button and have put this code on it...

on(release){
&nbsp &nbsp &nbsp &nbsp fscommand("exec", "c://Temp.mplayer2.exe");
}

I have tried multipe variations of this code but nothing happens.

Matt

ilyaslamasse
May 28th, 2002, 04:24 AM
You're not writing the path correctly :
c<img src=http://www.ezboard.com/intl/aenglish/images/emoticons/ohwell.gif ALT=":\"> Temp\mplayer2.exeif the file mplayer2.exe is located in Temp.

I don't know much about fscommand though.

pom 0]

Titoqan
May 28th, 2002, 05:09 AM
Thanks Pom, but it did not help.

I did find this over at actionscripts.org

filename = "test.pdf";//variable
fscommand ("exec", "start\t" + filename);//line of code for win9x,me
fscommand ("exec", "cmd\t/c\t" + filename);//line of code for winnt, and w2k

One last thing is that you need the file that you to open in the same dir as the file.

All I did was add this code to a button.

Matt