# STILL having trouble with fscommand ("exec"...);

**URL:** <https://forum.kirupa.com/t/still-having-trouble-with-fscommand-exec/38562>\
**Category:** flash\
**Created:** [December 25, 2003, 10:36am UTC](https://forum.kirupa.com/t/still-having-trouble-with-fscommand-exec/38562 "2003-12-25T10:36:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ignusb](https://avatars.discourse-cdn.com/v4/letter/i/9f8e36/32.png) [@ignusb](https://forum.kirupa.com/u/ignusb)\
**Post date:** [December 25, 2003, 10:36am UTC](https://forum.kirupa.com/t/still-having-trouble-with-fscommand-exec/38562/1 "2003-12-25T10:36:45Z")

</div>

I CANNOT get

on (press) {  
fscommand (“exec”, “file.exe”);  
}

to work properly. I have file.exe in a direct subdirectory [called fscommand] of the projector. WHY IS THIS NOT WORKING?

---

<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:** [December 25, 2003, 11:51pm UTC](https://forum.kirupa.com/t/still-having-trouble-with-fscommand-exec/38562/2 "2003-12-25T23:51:09Z")

</div>

```auto

on (press) {
fscommand ("exec", "fscommand/file.exe"); 
}

```

---

<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:** [December 25, 2003, 11:58pm UTC](https://forum.kirupa.com/t/still-having-trouble-with-fscommand-exec/38562/3 "2003-12-25T23:58:50Z")

</div>

yea, that didn’t work either… on [macromedia.com](http://macromedia.com) it said that you don’t need the ./ command, and you dont… it did not work, maybe you are still using flash 5/MX…?

anywayz, can someone test it in flashmx 2004 professional, then tell me, cause that didn’t work

---

<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:** [December 26, 2003, 2:54am UTC](https://forum.kirupa.com/t/still-having-trouble-with-fscommand-exec/38562/4 "2003-12-26T02:54:12Z")

</div>

put it in the same directory as your projector file and use your original code. This for a projector file right? That’s the only way fscommands can be used.

using a dot-slash (./) means to go up a level from where you are trying to call a file. Naming a subdirectory goes straight to the subdirectory.
