# Problem running DOS command with C:\\Program Files

**URL:** https://www.finalbuilder.com/forums/t/problem-running-dos-command-with-c-program-files/742
**Category:** Discussion
**Created:** [February 5, 2008, 6:31am UTC](https://www.finalbuilder.com/forums/t/problem-running-dos-command-with-c-program-files/742 "2008-02-05T06:31:18Z")
**Posts on this page:** 2
**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: [February 5, 2008, 6:31am UTC](https://www.finalbuilder.com/forums/t/problem-running-dos-command-with-c-program-files/742/1 "2008-02-05T06:31:18Z")

</div>

I'm trying to run DOS command %ProgramFiles%\ in Command filed.

I get :

'C:\Program' is not recognized as an internal or external command,  
operable program or batch file.  
Program returned code&nbsp; : 1

Then, I tried "%ProgramFiles%\".

Then, I still get the same error.

Is there any way for FB to recognize C:\Program Files? (and subsequent strings)

Thanks.

&nbsp;

---

<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: [February 5, 2008, 11:33am UTC](https://www.finalbuilder.com/forums/t/problem-running-dos-command-with-c-program-files/742/2 "2008-02-05T11:33:19Z")

</div>

Hi Ho,   
  
 The “Run DOS Command” action is only for built-in “command prompt” commands (ie dir.)   
  
 If you use the “Execute Program” action instead, it will be able to run your target application.   
  
 We’re currently in the process of tweaking FinalBuilder to make this more obvious.   
  
 Regards,   
  
 Angus
