# Variables/parameters for scheduled builds?

**URL:** https://www.finalbuilder.com/forums/t/variables-parameters-for-scheduled-builds/258
**Category:** Discussion
**Created:** [November 14, 2006, 1:00am UTC](https://www.finalbuilder.com/forums/t/variables-parameters-for-scheduled-builds/258 "2006-11-14T01:00:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![stevage](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/bc8723/32.png) [@stevage](https://www.finalbuilder.com/forums/u/stevage)
#### Post date: [November 14, 2006, 1:00am UTC](https://www.finalbuilder.com/forums/t/variables-parameters-for-scheduled-builds/258/1 "2006-11-14T01:00:08Z")

</div>

Hi all,  
 Evaluating FB at the moment, and I can’t figure out a way to set a specific variable for a scheduled build. It seems like a pretty basic thing to want to do: Say you have three very similar, but complex builds, A, B and C. You want to run build A every night, build B every friday, etc. Now, I really want one build project parameterised by the build type, due to their similarity. So, how can I tell FB to schedule a given type for a given time/date?  
  
I think it can be done on the command line, passing variable values, but that means using an external scheduler to run the command line. Or perhaps something a bit kludgy like getting FB to schedule-run a script that actually calls itself on the command line! Is there a more elegant solution?  
  
Many thanks,  
Steve

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [November 14, 2006, 2:04am UTC](https://www.finalbuilder.com/forums/t/variables-parameters-for-scheduled-builds/258/2 "2006-11-14T02:04:30Z")

</div>

Steve,  
  
The way achieve this is to pass variables via the command line parameter. The schedule wizard doesn’t expose this at the moment, so after you create a scheduled build you need to go to Control Panel | Scheduled Tasks and then add the /v= parameter yourself.  
  
Here’s the command line help for the IDE:  
[https://www.finalbuilder.com/finalbuilder/Help/HTML/commandlineinterface.htm](https://www.finalbuilder.com/finalbuilder/Help/HTML/commandlineinterface.htm)  
  
And FBCMD:  
[https://www.finalbuilder.com/finalbuilder/Help/HTML/fbcmd.htm](https://www.finalbuilder.com/finalbuilder/Help/HTML/fbcmd.htm)  
  
cheers,  
.t8

---

<div class="post-metadata">

### Author: ![stevage](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/bc8723/32.png) [@stevage](https://www.finalbuilder.com/forums/u/stevage)
#### Post date: [November 14, 2006, 2:11am UTC](https://www.finalbuilder.com/forums/t/variables-parameters-for-scheduled-builds/258/3 "2006-11-14T02:11:47Z")

</div>

Thanks very much, that solution is pretty good.

---

<div class="post-metadata">

### Author: ![rlove](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/rlove/32/27_2.png) [@rlove](https://www.finalbuilder.com/forums/u/rlove)
#### Post date: [November 14, 2006, 2:23am UTC](https://www.finalbuilder.com/forums/t/variables-parameters-for-scheduled-builds/258/4 "2006-11-14T02:23:41Z")

</div>

To keep things simple we used a different method.1. Create a New Project.2. Add Include Project Task3. Set Variables to desired values.4. Save5. Schedule new project.

---

<div class="post-metadata">

### Author: ![stevage](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/bc8723/32.png) [@stevage](https://www.finalbuilder.com/forums/u/stevage)
#### Post date: [November 16, 2006, 12:05pm UTC](https://www.finalbuilder.com/forums/t/variables-parameters-for-scheduled-builds/258/5 "2006-11-16T12:05:42Z")

</div>

That’s perfect - should have thought of looking for a task like that. Thanks heaps!
