# FinalBuilder6.exe command line variables

**URL:** https://www.finalbuilder.com/forums/t/finalbuilder6-exe-command-line-variables/1184
**Category:** Discussion
**Created:** [April 23, 2009, 2:45am UTC](https://www.finalbuilder.com/forums/t/finalbuilder6-exe-command-line-variables/1184 "2009-04-23T02:45:29Z")
**Posts on this page:** 4
**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: [April 23, 2009, 2:45am UTC](https://www.finalbuilder.com/forums/t/finalbuilder6-exe-command-line-variables/1184/1 "2009-04-23T02:45:29Z")

</div>

I'm running the FinalBuilder6 IDE&nbsp;from the following command line:

FinalBuilder6.exe /vTEST=Release -r -z E:\CommandLineTest.fbz6

I&nbsp;have a user variable called TEST, and some actions use this variable.&nbsp; The value of TEST&nbsp;isn't being set.&nbsp; Other command line switches (/n, /o, etc.) work as expected. &nbsp;

Having searched the forums up and down with no others finding similar problems, I&nbsp;must be doing something wrong, or not doing something!

Thanks

[CommandLineTest.fbz6](https://www.finalbuilder.com/forums/uploads/default/original/2X/4/48f576e4d5611304317be8365f9d280b29d9736a.fbz6) (2.398 KB)

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [April 24, 2009, 12:26pm UTC](https://www.finalbuilder.com/forums/t/finalbuilder6-exe-command-line-variables/1184/2 "2009-04-24T12:26:32Z")

</div>

Hi Paul,   
  
 The attached project does not have a variable named ‘TEST’ defined, unless %TEST% is an environment variable you’ll need to define the variable in your project before it can be set from the command line.   
  
 Regards,   
 Paul.

---

<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: [April 27, 2009, 8:44am UTC](https://www.finalbuilder.com/forums/t/finalbuilder6-exe-command-line-variables/1184/3 "2009-04-27T08:44:59Z")

</div>

OK - from your reply, I appear to be fundamentally misunderstanding&nbsp; "Variables"!

I've attached a screenshot of the previously attached project showing a User variable called TEST - this is the variable I&nbsp;want to set via the command line.

Where&nbsp;&&nbsp;how do I&nbsp;add variables that can be set from the command line?

Regards,

PaulS

![Variables.jpg](https://www.finalbuilder.com/forums/uploads/default/original/1X/0fd6f67aaf173fb875a2e3eb9cdde1b8cc269299.jpeg)

---

<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: [April 27, 2009, 8:56am UTC](https://www.finalbuilder.com/forums/t/finalbuilder6-exe-command-line-variables/1184/4 "2009-04-27T08:56:45Z")

</div>

Hi Paul   
  
 It should work as expected, I just tested this here on my home pc with FB 6.2   
  
 If your variable is set to be a Macro then setting it from the command line will not work as macro’s cannot be set from the command line.
