# Flash 5 - Flash MX problem

**URL:** https://forum.kirupa.com/t/flash-5-flash-mx-problem/13603
**Category:** Uncategorized
**Created:** [February 15, 2003, 8:49am UTC](https://forum.kirupa.com/t/flash-5-flash-mx-problem/13603 "2003-02-15T08:49:16Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![FIREWIGHT](https://avatars.discourse-cdn.com/v4/letter/f/ba9def/32.png) [@FIREWIGHT](https://forum.kirupa.com/u/FIREWIGHT)
#### Post date: [February 15, 2003, 8:49am UTC](https://forum.kirupa.com/t/flash-5-flash-mx-problem/13603/1 "2003-02-15T08:49:16Z")

</div>

heya guys

i need a little help with a problem i am encountering

until recently i have been using flash 5, and have just upgraded to flash mx

unfortunately i have been working on a project in flash 5 for some time, and the change seems to have effected the workings of my project

in particular, i am using an fscommand to open & close .exe projector files made from flash

the previous command was:

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

but this no longer works when the file is published & projected using flash mx…

I know it is a difference between the 2 versions of flash, because files i have projected to .exe using flash 5 still work, and they will exec flash mx projected files, but flash mx projected files will not exec anything at all…

any help at all here would be appreciated

thankyou

FW

---

<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: [February 15, 2003, 9:27am UTC](https://forum.kirupa.com/t/flash-5-flash-mx-problem/13603/2 "2003-02-15T09:27:06Z")

</div>

> [size=4] **exec** [/size]

The **exec** command is used to launch an external application. In Macromedia Flash MX the external application must be in a subfolder named **fscommand**. This subfolder must be in the same directory as the projector which uses the fscommand action. This security restriction helps prevent malicious use of the exec option.

The following script launches the Windows application someApplication.exe, which is in the fscommand folder on the same level as the projector:

```auto
on (release) {
	fscommand ("exec", "someApplication.exe");
}

```

[size=1]Note: The fscommand subfolder path is not used in the argument. Place someApplication.exe inside the fscommand folder, but just use the name of the application in the argument.[/size]

[http://www.macromedia.com/support/flash/ts/documents/fscommand\_projectors.htm](http://www.macromedia.com/support/flash/ts/documents/fscommand_projectors.htm)

and i have no problems with **quit** :-\

---

<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: [February 15, 2003, 9:38am UTC](https://forum.kirupa.com/t/flash-5-flash-mx-problem/13603/3 "2003-02-15T09:38:51Z")

</div>

Thankyou for your help, this does work, but truly screws my project, because the design is calling for .exe projector files that are in the same directory, & i can’t have a sub dir called fscommand inside a sub dir called fscommand & so on, I need to ti call from the same dir…

any ideas?

otherwise it’s back to flash 5 for me…

FW

---

<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: [February 15, 2003, 9:53am UTC](https://forum.kirupa.com/t/flash-5-flash-mx-problem/13603/4 "2003-02-15T09:53:15Z")

</div>

maybe using a bat file … i’m not so sure

on (release) {  
fscommand (“exec”, “whatever.bat”)  
}

create your whatever.bat file in notepad and write in the file

@ echo off  
start someapplication.exe  
exit

the .bat file must be in the subfolder fscommand and i don’t know if you can target different folders with it. in your shoes … i say it’s worth a try 🙂

[size=1]\*\*NOTE: \*\*you can open any file format with the .bat file. not only .exe 😏[/size]

---

<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: [February 15, 2003, 1:49pm UTC](https://forum.kirupa.com/t/flash-5-flash-mx-problem/13603/5 "2003-02-15T13:49:22Z")

</div>

> \*Originally posted by kax \*  
> \*\*maybe using a bat file … i’m not so sure… \*\*

Thats right. Bat files are the typical way of handling fscommand exec with the MX need to have the files in the fscommand folder
