# Run DOS Command action

**URL:** https://www.finalbuilder.com/forums/t/run-dos-command-action/3691
**Category:** Bugs
**Created:** [March 29, 2018, 10:43am UTC](https://www.finalbuilder.com/forums/t/run-dos-command-action/3691 "2018-03-29T10:43:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![wasowerby](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/w/b77776/32.png) [@wasowerby](https://www.finalbuilder.com/forums/u/wasowerby)
#### Post date: [March 29, 2018, 10:43am UTC](https://www.finalbuilder.com/forums/t/run-dos-command-action/3691/1 "2018-03-29T10:43:16Z")

</div>

Trying to run the following command using the Run DOS Command action:   
  
 “C:\Program Files\Java\jdk1.8.0\_162\bin\jarsigner” -verbose …   
 Start in: C:\Program Files\Java   
  
 But I get the following error in FB 8.0.0.0.2370 (W10 Pro):   
  
 ‘C:\Program’ is not recognized as an internal or external command   
  
 Using, for example, cd “Program Files\Java” in Command Prompt works as normal. Tried using %ProgramFiles%, but same issue. Is this a bug (unlikely I guess) or am I formatting or using the command incorrectly?   
  
 Andrew

---

<div class="post-metadata">

### Author: ![wasowerby](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/w/b77776/32.png) [@wasowerby](https://www.finalbuilder.com/forums/u/wasowerby)
#### Post date: [March 29, 2018, 11:02am UTC](https://www.finalbuilder.com/forums/t/run-dos-command-action/3691/2 "2018-03-29T11:02:31Z")

</div>

Ok, from the Help I guess I should be using the Execute Program action instead? Still, the Run DOS Command action works if, for example, using instead:   
  
 “E:\Java\jdk1.8.0\_162\bin\jarsigner” -verbose …   
  
 Thanks…Andrew

---

<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: [March 29, 2018, 1:29am UTC](https://www.finalbuilder.com/forums/t/run-dos-command-action/3691/3 "2018-03-29T01:29:50Z")

</div>

Specify the path in the “Start in” field, and just the executable name (or dos command) in the command field.   
  
 And yes, you should use the Execute Program action, as it runs the program directly rather than via cmd.exe

---

<div class="post-metadata">

### Author: ![wasowerby](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/w/b77776/32.png) [@wasowerby](https://www.finalbuilder.com/forums/u/wasowerby)
#### Post date: [March 29, 2018, 2:26am UTC](https://www.finalbuilder.com/forums/t/run-dos-command-action/3691/4 "2018-03-29T02:26:29Z")

</div>

Thanks Vincent, using the Execute Program action fixes the issue.   
  
 Regards…Andrew
