# Passing Parameters to a .bat or .exe file from a projector

**URL:** https://forum.kirupa.com/t/passing-parameters-to-a-bat-or-exe-file-from-a-projector/196949
**Category:** flash
**Created:** [August 12, 2006, 2:14am UTC](https://forum.kirupa.com/t/passing-parameters-to-a-bat-or-exe-file-from-a-projector/196949 "2006-08-12T02:14:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Damien1247](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@Damien1247](https://forum.kirupa.com/u/Damien1247)
#### Post date: [August 12, 2006, 2:14am UTC](https://forum.kirupa.com/t/passing-parameters-to-a-bat-or-exe-file-from-a-projector/196949/1 "2006-08-12T02:14:28Z")

</div>

First I have to say I just spent the last 40 minutes searching and I did not come up with any results.

That out of the way, I am trying to figure out how to write or create files using a flash projector and a .bat file. For example I have a file that writes the text that it takes into a text file. Sort of a logging program. But I cannot figure out how to pass an argument to the .bat file. now in dos I know the command runs:

```auto
[path to .bat] write.bat [arguments]

```

in flash I use the fscommand to run the .bat file. Now I know that there has to be a fscommand folder (dumb!)

Now, right now my only other option would be to take the string I want to pass to the file, break it into its individual letters and then run an individual .bat file for each letter. This method would work but would be really tedious to implement as well as a lot slower than simply passing a string to a file. Also it would take up a significant ammount of room due to the neccesity of having somewhere upwards of 256 .bat files (ascii codes).

Suggestions are appreciated.
