# ? Opening an EXE-file without using "getURL"

**URL:** <https://forum.kirupa.com/t/opening-an-exe-file-without-using-geturl/21080>\
**Category:** Uncategorized\
**Created:** [May 16, 2003, 6:50pm UTC](https://forum.kirupa.com/t/opening-an-exe-file-without-using-geturl/21080 "2003-05-16T18:50:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![FLX](https://avatars.discourse-cdn.com/v4/letter/f/a4c791/32.png) [@FLX](https://forum.kirupa.com/u/FLX)\
**Post date:** [May 16, 2003, 6:50pm UTC](https://forum.kirupa.com/t/opening-an-exe-file-without-using-geturl/21080/1 "2003-05-16T18:50:37Z")

</div>

Hi!

I’d like to open an EXE-file by clicking on a flash-button.

I tried to do so with the actionscript “getURL” to open the file.  
…which worked so far that I had to specify wether I wanted to OPEN or SAVE the file (a “Download file”-window pops up).  
But unfortunately this is exactly what I don’t want since either way (open or save) windows copies the file into a (TEMP-) directory and launches it from there - which doesn’t work since the file reads data from another .INI-file which needs to be in the same director.

So plain and simple: I want flash to open the executable where it is originally (a CD-ROM) and not ask me where I want to download it.

Hope this describes my problem well enough so anyone can help me!

greetings & thanx a lot in advance!

Felix

---

<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 16, 2003, 6:55pm UTC](https://forum.kirupa.com/t/opening-an-exe-file-without-using-geturl/21080/2 "2003-05-16T18:55:12Z")

</div>

is this a website or a projector on CD-ROM?

---

<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 16, 2003, 6:56pm UTC](https://forum.kirupa.com/t/opening-an-exe-file-without-using-geturl/21080/3 "2003-05-16T18:56:33Z")

</div>

the flash file containing the button is a projector on CD-ROM.

the executable to be opened by flash is a Visual Basic 6 executable on the CD-ROM as well

---

<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 16, 2003, 6:56pm UTC](https://forum.kirupa.com/t/opening-an-exe-file-without-using-geturl/21080/4 "2003-05-16T18:56:48Z")

</div>

to launch an exe, use fscommand. In MX you’re required to have exes used by fscommand in a fscommand folder within your flash movies directory

fscommand(“exec”,“app.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:** [May 16, 2003, 7:02pm UTC](https://forum.kirupa.com/t/opening-an-exe-file-without-using-geturl/21080/5 "2003-05-16T19:02:01Z")

</div>

@electrongeek: could you be a little more specific on that? I’m still quite new to actionscript :-/

the exec. I want flash to open doesn’t have anything to do with the flash movie itself and needs to be together in the same directory as the INI file I mentioned.

so could I just create a folder named e.g. “flash” put the projector & a folder named “fscommand” in it and the exec & the ini file in the fscommand folder and it would 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:** [May 16, 2003, 7:11pm UTC](https://forum.kirupa.com/t/opening-an-exe-file-without-using-geturl/21080/6 "2003-05-16T19:11:02Z")

</div>

In your flash directory, create a folder called “exec” that contains your exe file.

Then to launch the exe, use the fscommand I posted above.

---

<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 16, 2003, 7:27pm UTC](https://forum.kirupa.com/t/opening-an-exe-file-without-using-geturl/21080/7 "2003-05-16T19:27:33Z")

</div>

okay stupid question but which flash-directory do you mean?  
the one where the projector file is stored or the one where Flash MX is installed (on the harddrive)?
