# Fscommand and opening an applications

**URL:** <https://forum.kirupa.com/t/fscommand-and-opening-an-applications/2605>\
**Category:** Uncategorized\
**Created:** [May 28, 2002, 8:02am UTC](https://forum.kirupa.com/t/fscommand-and-opening-an-applications/2605 "2002-05-28T08:02:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2002, 8:02am UTC](https://forum.kirupa.com/t/fscommand-and-opening-an-applications/2605/1 "2002-05-28T08:02:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2002, 8:24am UTC](https://forum.kirupa.com/t/fscommand-and-opening-an-applications/2605/2 "2002-05-28T08:24:17Z")

</div>

You’re not writing the path correctly :

```auto
 c<img src=http://www.ezboard.com/intl/aenglish/images/emoticons/ohwell.gif ALT=":\"> Temp\mplayer2.exe

```

if the file mplayer2.exe is located in Temp.

I don’t know much about fscommand though.

pom 0]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2002, 9:09am UTC](https://forum.kirupa.com/t/fscommand-and-opening-an-applications/2605/3 "2002-05-28T09:09:55Z")

</div>

Thanks Pom, but it did not help.

I did find this over at [actionscripts.org](http://actionscripts.org)

filename = “test.pdf”;//variable  
fscommand (“exec”, "start " + filename);//line of code for win9x,me  
fscommand (“exec”, "cmd /c " + 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
