# Setting NUnit console location by scripting

**URL:** https://www.finalbuilder.com/forums/t/setting-nunit-console-location-by-scripting/853
**Category:** Discussion
**Created:** [May 29, 2008, 4:51am UTC](https://www.finalbuilder.com/forums/t/setting-nunit-console-location-by-scripting/853 "2008-05-29T04:51:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hiegunn](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/h/0ea827/32.png) [@hiegunn](https://www.finalbuilder.com/forums/u/hiegunn)
#### Post date: [May 29, 2008, 4:51am UTC](https://www.finalbuilder.com/forums/t/setting-nunit-console-location-by-scripting/853/1 "2008-05-29T04:51:19Z")

</div>

I'd like to use the same FB project on different machines.&nbsp; To do that I need to set the location of the NUnit console application.&nbsp; The help file explains how to do it.

From the help: "FinalBuilder allows you to modify FinalBuilder options at runtime using scripting. This makes it possible to specify the path to a third party tool at runtime so that a FinalBuilder project can for example use a different version of a third party tool"

It gives an example:

dim delphiOptions

set delphiOptions = GetOptionsObject("Borland Delphi")

delphiOptions.D6LibraryPath =delphiOptions.D6LibraryPath & ";$(DELPHI)\Components\Lib"

I tried

dim NUnitOptions

set NUnitOptions = GetOptionsObject("NUnit") ' since this is the name of the option in Tools Options

The Intellisense gave no property to set but a long list of dims, Subs and Functions.&nbsp; I noticed a Sub called NUnitOptions but have no idea what it is or how to use it.

Can you help please.

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [May 30, 2008, 1:53am UTC](https://www.finalbuilder.com/forums/t/setting-nunit-console-location-by-scripting/853/2 "2008-05-30T01:53:34Z")

</div>

Hi Hamish,   
  
Thanks for pointing this out. Code completion for some of the option objects seem to be broken, we will get this fixed ASAP.   
  
In the mean time, here's the script you need:   
  
dim opt   
set opt = GetOptionsObject("NUnit")   
Action.SendLogMessage(opt.NUnitLocation)   
  
... that will output the full path to nunit-console.exe, as set in the options. You can also set it, in similar fashion.   
  
Regards,   
  
Angus

---

<div class="post-metadata">

### Author: ![hiegunn](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/h/0ea827/32.png) [@hiegunn](https://www.finalbuilder.com/forums/u/hiegunn)
#### Post date: [May 30, 2008, 11:24am UTC](https://www.finalbuilder.com/forums/t/setting-nunit-console-location-by-scripting/853/3 "2008-05-30T11:24:18Z")

</div>

Thanks Angus - that fixed it for me (the property NUnitLocation).

Hamish
