# Fbcmd.exe and Persistent\_Project\_Variables problem

**URL:** <https://www.finalbuilder.com/forums/t/fbcmd-exe-and-persistent-project-variables-problem/2999>\
**Category:** Bugs\
**Created:** [June 26, 2008, 8:41am UTC](https://www.finalbuilder.com/forums/t/fbcmd-exe-and-persistent-project-variables-problem/2999 "2008-06-26T08:41:01Z")\
**Posts on this page:** 5\
**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:** [June 26, 2008, 8:41am UTC](https://www.finalbuilder.com/forums/t/fbcmd-exe-and-persistent-project-variables-problem/2999/1 "2008-06-26T08:41:01Z")

</div>

- When running bcmd.exe, some importante "Persistent Project variables" that we create are reset and the build fail each time.

- We just upgrade my projects from FinalBuilder4 to FinalBuilder6.

The upgrade was very good, no serious problem.

&nbsp;

Except for this propblem comming only with the Upgrade ( I mean we do not have this problem with FinalBuilder4):

We run every night a single project to lunch all active projects.

So we call for each project this action:

Run DOS Command [ c:\"program files"\"FinalBuilder 6"\fbcmd.exe

/p"%DevPath%\%Client%\AutomatedBuilds\Project1\_Trunk.fbz6" ]

here is some facts:

- When running bcmd.exe, some importante "persistent variables" are reset and the build fail each time.

- When I open the 'Project1"and run it from the FinalBuilder IDE, it works with no problem.

&nbsp;

Any suggestion?

Thanks!

---

<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:** [June 27, 2008, 3:33am UTC](https://www.finalbuilder.com/forums/t/fbcmd-exe-and-persistent-project-variables-problem/2999/2 "2008-06-27T03:33:56Z")

</div>

Hi

Which build of FinalBuilder 6 are you using? Also, you should not use the Run Dos command to execute programs, use the Excecute Program action as it handles a bunch of issues with executing programs that the Run Dos command does not.

&nbsp;

---

<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:** [June 27, 2008, 4:15am UTC](https://www.finalbuilder.com/forums/t/fbcmd-exe-and-persistent-project-variables-problem/2999/3 "2008-06-27T04:15:31Z")

</div>

Hi   
- I am using build 6.0.0.648.   
- I try your suggestion by using "Execute Program"Action in place of "Run DOS Command" action. I have the same result, the Persistent\_Project\_Variables still initialized.  
  
- As I said I upgrade all my projects from 4.2.0.317 to 6.0.0.648. All Projects were working fine with 4.2.0.317.

---

<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:** [June 28, 2008, 2:39am UTC](https://www.finalbuilder.com/forums/t/fbcmd-exe-and-persistent-project-variables-problem/2999/4 "2008-06-28T02:39:05Z")

</div>

Thanks, we are looking into the problem.

---

<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:** [July 4, 2008, 8:27am UTC](https://www.finalbuilder.com/forums/t/fbcmd-exe-and-persistent-project-variables-problem/2999/5 "2008-07-04T08:27:29Z")

</div>

Hi Sofiane,   
  
 Thanks for your patience… finally sorted out this bug! _phew_   
  
 Here’s the latest test build, please let me know how you go:   
 [https://www.finalbuilder.com/downloads/finalbuilder/610/FB610\_809.exe](https://www.finalbuilder.com/downloads/finalbuilder/610/FB610_809.exe)
