# Running external action with custom command line parameters

**URL:** https://www.finalbuilder.com/forums/t/running-external-action-with-custom-command-line-parameters/1805
**Category:** Discussion
**Created:** [July 15, 2011, 10:25am UTC](https://www.finalbuilder.com/forums/t/running-external-action-with-custom-command-line-parameters/1805 "2011-07-15T10:25:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [July 15, 2011, 10:25am UTC](https://www.finalbuilder.com/forums/t/running-external-action-with-custom-command-line-parameters/1805/1 "2011-07-15T10:25:31Z")

</div>

Hi

Is it possible to get the path to executable, defined in action and run the executable with additional command line parameters (which are not supported by Final&nbsp;Builder)?

For example, Smartassembly Improve + Protect Assembly. I would like to run it with -Input and -Output command line parameters, however the action supports only project file parameter. Is it possible to get the configured action executable from Final Builder settings and run it manually?

&nbsp;

Thanks,  
Zvonko

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [July 15, 2011, 11:43am UTC](https://www.finalbuilder.com/forums/t/running-external-action-with-custom-command-line-parameters/1805/2 "2011-07-15T11:43:53Z")

</div>

You can use script to access the options and get the path, it’s not well documented :   
  
 [code]var oSmartAssemblyOptions = GetOptionsObject("{smartassembly}").Properties;if (oSmartAssemblyOptions != null){ Action.ProgramName = oSmartAssemblyOptions.PropertyAsString(“Location”);;}[/code]   
  
 Put the above code in the the beforeAction script event, set the script language to JavaScript.   
  
 We’ll add support for the options in the next few days… they appear to be only in the most recent release as far as I can tell.

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [July 18, 2011, 6:21am UTC](https://www.finalbuilder.com/forums/t/running-external-action-with-custom-command-line-parameters/1805/3 "2011-07-18T06:21:19Z")

</div>

Hi Zvonko   
  
 I have added the input and output options to the smart assembly action. You can find this feature in the following build:   
 [https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700\_1421.exe](https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_1421.exe)   
  
 Regards,   
 Steve
