# Any way to log my expanded DOS command?

**URL:** https://www.finalbuilder.com/forums/t/any-way-to-log-my-expanded-dos-command/388
**Category:** Discussion
**Created:** [March 9, 2007, 10:46am UTC](https://www.finalbuilder.com/forums/t/any-way-to-log-my-expanded-dos-command/388 "2007-03-09T10:46:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![paulstock](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/paulstock/32/45_2.png) [@paulstock](https://www.finalbuilder.com/forums/u/paulstock)
#### Post date: [March 9, 2007, 10:46am UTC](https://www.finalbuilder.com/forums/t/any-way-to-log-my-expanded-dos-command/388/1 "2007-03-09T10:46:28Z")

</div>

I have a DOS command where I’m substituting all kinds of local variables like so:  
  
pcli run -n Vlog -pr"%PVCSArchiveLocation%" -ds"%LastRunDate%" -de"%RunDate%" -z -f"%FBProjectDIR%%LogFile%" -id"%PVCSUserId%:%PVCSPswd%" "%PVCSProject%"  
  
Is there any way that I can have FB log the expanded command so that if something goes wrong I can see the values that were passed to the command?&nbsp; Right now the output from the command goes into the Build Log, but not the command itself.  
  
Thanks  
  
Paul

---

<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 11, 2007, 7:39am UTC](https://www.finalbuilder.com/forums/t/any-way-to-log-my-expanded-dos-command/388/2 "2007-03-11T07:39:33Z")

</div>

Hi Paul  
  
You should the Execute Program action rather than the dos command action, it will log the expanded command line.

---

<div class="post-metadata">

### Author: ![paulstock](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/paulstock/32/45_2.png) [@paulstock](https://www.finalbuilder.com/forums/u/paulstock)
#### Post date: [March 12, 2007, 3:44am UTC](https://www.finalbuilder.com/forums/t/any-way-to-log-my-expanded-dos-command/388/3 "2007-03-12T03:44:27Z")

</div>

I tried that, but when I use the Execute Program option using the exact same parameters I get the error message:  
"Failed to execute program. Error : The system cannot find the file specified"  
  
Any suggestions?  
  
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: [March 12, 2007, 11:24am UTC](https://www.finalbuilder.com/forums/t/any-way-to-log-my-expanded-dos-command/388/4 "2007-03-12T11:24:50Z")

</div>

Make sure you specify the full path to the exe.
