# Other commands (beside 'fscommand') to open notepad & calculator

**URL:** <https://forum.kirupa.com/t/other-commands-beside-fscommand-to-open-notepad-calculator/20173>\
**Category:** Uncategorized\
**Created:** [May 6, 2003, 1:10am UTC](https://forum.kirupa.com/t/other-commands-beside-fscommand-to-open-notepad-calculator/20173 "2003-05-06T01:10:41Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![teng](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@teng](https://forum.kirupa.com/u/teng)\
**Post date:** [May 6, 2003, 1:10am UTC](https://forum.kirupa.com/t/other-commands-beside-fscommand-to-open-notepad-calculator/20173/1 "2003-05-06T01:10:41Z")

</div>

Is anyone know how to write the actionscript to open the notepad and calculator when click on the button?

---

<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 6, 2003, 2:15am UTC](https://forum.kirupa.com/t/other-commands-beside-fscommand-to-open-notepad-calculator/20173/2 "2003-05-06T02:15:00Z")

</div>

the only way i know is using a .bat file…

open notepad to create the .bat files.

to open the calculator:

```auto
@ echo off
start %SystemRoot%\system32\calc.exe
exit

```

and save it as **calculator.bat**

to open the notepad:

```auto
@ echo off
start %SystemRoot%\system32
otepad.exe
exit

```

and save it as **notepad.bat**

and put both .bat files in a folder called **fscommand**.

finally, here’s the script for the buttons in flash:

```auto
notepadButton.onRelease = function() {
fscommand("exec", "notepad.bat");
};
calculatorButton.onRelease = function() {
fscommand("exec", "calculator.bat");
};

```

**note.** this will only work in projectors.

any questions? =)

---

<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 6, 2003, 3:40am UTC](https://forum.kirupa.com/t/other-commands-beside-fscommand-to-open-notepad-calculator/20173/3 "2003-05-06T03:40:01Z")

</div>

hi kax:  
I already solved the prev problem, but it still not working.  
Actually, where should I put the ‘fscommand’ folder? And the path: ‘start %SystemRoot%\system32  
otepad.exe’ in the ‘bat’ file, should it be ‘start %SystemRoot%\WINDOWS  
otepad.exe’?

Thanks everyone for the helps.

---

<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 6, 2003, 3:57am UTC](https://forum.kirupa.com/t/other-commands-beside-fscommand-to-open-notepad-calculator/20173/4 "2003-05-06T03:57:52Z")

</div>

well, if the path i gave you doesn’t work… use the correct path in your system.

%SystemRoot%\system32  
otepad.exe works fine in mine.

and yeah… you could have replied to your previous thread. :-\

---

<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 6, 2003, 4:10am UTC](https://forum.kirupa.com/t/other-commands-beside-fscommand-to-open-notepad-calculator/20173/5 "2003-05-06T04:10:04Z")

</div>

Hi everyone:  
First, I like to thanks to kax and everyone for the helps. The command is working fine now. I just wondering is it any other ways to open notepad and calculator beside ‘fscommand’ ? (I can directly access the notepad and calculator without create the folder ‘fscommand’ and ‘.bat’ files.)

Thanks

---

<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 6, 2003, 4:14am UTC](https://forum.kirupa.com/t/other-commands-beside-fscommand-to-open-notepad-calculator/20173/6 "2003-05-06T04:14:39Z")

</div>

again, you don’t need to start a new thread in the same subject. :-\

and no, i don’t think you can (security reasons).

---

<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 7, 2003, 1:54am UTC](https://forum.kirupa.com/t/other-commands-beside-fscommand-to-open-notepad-calculator/20173/7 "2003-05-07T01:54:51Z")

</div>

Hi kax:  
Is me again. Why I click the buttons to open the notepad and calculator when I press the Ctrl+Enter to test the movie? and not after I export the movie?

---

<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 7, 2003, 1:59am UTC](https://forum.kirupa.com/t/other-commands-beside-fscommand-to-open-notepad-calculator/20173/8 "2003-05-07T01:59:35Z")

</div>

ehmm… what!? 😛

seriously, i didn’t understand a thing. :-\

---

<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 7, 2003, 2:05am UTC](https://forum.kirupa.com/t/other-commands-beside-fscommand-to-open-notepad-calculator/20173/9 "2003-05-07T02:05:22Z")

</div>

where should I put the fscommand folder? Is it in the Flash MX folder itself?

---

<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 7, 2003, 2:12am UTC](https://forum.kirupa.com/t/other-commands-beside-fscommand-to-open-notepad-calculator/20173/10 "2003-05-07T02:12:56Z")

</div>

nope… you put it in the same folder than your projector. 😉

---

<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 7, 2003, 2:17am UTC](https://forum.kirupa.com/t/other-commands-beside-fscommand-to-open-notepad-calculator/20173/11 "2003-05-07T02:17:54Z")

</div>

The projector you mean here is refer to which one? Actually, what is projector?

---

<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 7, 2003, 3:05am UTC](https://forum.kirupa.com/t/other-commands-beside-fscommand-to-open-notepad-calculator/20173/12 "2003-05-07T03:05:24Z")

</div>

Is there anyway to open the application in swf format?

---

<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 7, 2003, 5:29am UTC](https://forum.kirupa.com/t/other-commands-beside-fscommand-to-open-notepad-calculator/20173/13 "2003-05-07T05:29:19Z")

</div>

basically a projector is the .swf in .exe format. go to file\>publish settings and check windows projector in the formats tab. then click on publish.

**note.** you don’t need the flash player installed in order to run a projector.

and i don’t know if there’s a way to run the application in .swf format. i haven’t tried it.
