# How about an input field for Run Dos Command

**URL:** https://www.finalbuilder.com/forums/t/how-about-an-input-field-for-run-dos-command/3910
**Category:** Feature Requests
**Created:** [October 18, 2007, 9:27am UTC](https://www.finalbuilder.com/forums/t/how-about-an-input-field-for-run-dos-command/3910 "2007-10-18T09:27:46Z")
**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: [October 18, 2007, 9:27am UTC](https://www.finalbuilder.com/forums/t/how-about-an-input-field-for-run-dos-command/3910/1 "2007-10-18T09:27:46Z")

</div>

Say, you could specify a variable containing input, or a variable containing the name of an input file, and that input would be sent to the program. Since output can already be captured, this would be pretty powerful: you could use external DOS/mks42 utilities like Sort or whatever without having to write data to a file first.

Steve

---

<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: [October 19, 2007, 2:00am UTC](https://www.finalbuilder.com/forums/t/how-about-an-input-field-for-run-dos-command/3910/2 "2007-10-19T02:00:53Z")

</div>

Hi Steve,   
  
 Unfortunately, the main problem with this kind of feature is implementing it. Sending data to the standard input of a process and making it work reliably is actually fairly hard. There used to be experimental support for it in FB but we pulled it after too many programs gave unusual results.   
  
 If you use the Run DOS Command action instead of the Execute Program action, you can use “\< FileName.txt” to redirect input from a file.   
  
 Regards,   
  
 Angus

---

<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: [October 22, 2007, 3:45am UTC](https://www.finalbuilder.com/forums/t/how-about-an-input-field-for-run-dos-command/3910/3 "2007-10-22T03:45:43Z")

</div>

Ok, if you say so. Maybe FB could simply write the contents of the variable to disk, then perform the input redirection you mention.   
  
 (Note that I was specifically talking about Run DOS Command, rather than Execute Program…)   
  
 Steve

---

<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: [November 5, 2007, 11:39am UTC](https://www.finalbuilder.com/forums/t/how-about-an-input-field-for-run-dos-command/3910/4 "2007-11-05T11:39:28Z")

</div>

Hi Steve,   
  
 Good suggestion on automatically piping input to DOS commands. Can you explain exactly what commands you need to pipe information to?   
  
 Regards,   
  
 Angus

---

<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 8, 2007, 6:52am UTC](https://www.finalbuilder.com/forums/t/how-about-an-input-field-for-run-dos-command/3910/5 "2007-11-08T06:52:18Z")

</div>

Ok, a simple case is sort - there’s no “sort” action. But given a sort.exe which reads/writes from/to standard input/out (of which there are many), you could simply have a “Run DOS command” action where the input is %Listtobesorted% and the output is %SortedList% (Ideally you could make them the same variable, but I can see how that would be problematic).   
  
 Awk is another common one: we use awk scripts here relatively often, so it’s handy to be able to quickly pipe some text through an awk script.   
  
 Steve
