# Shell and output redirection

**URL:** <https://forum.xojo.com/t/shell-and-output-redirection/35168>\
**Category:** General\
**Created:** [December 28, 2016, 2:43am UTC](https://forum.xojo.com/t/shell-and-output-redirection/35168 "2016-12-28T02:43:51Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![Wayne\_Golding](https://forum.xojo.com/user_avatar/forum.xojo.com/wayne_golding/32/165_2.png) [@Wayne\_Golding](https://forum.xojo.com/u/Wayne_Golding)\
**Post date:** [December 29, 2016, 3:43am UTC](https://forum.xojo.com/t/shell-and-output-redirection/35168/21 "2016-12-29T03:43:38Z")

</div>

This can be done with a combination of batch file & windows script see [here](https://xojo.io/63bd98703cc2). Notice there is a copy file build step to copy psexec to the application folder.

Also there is an arbitrary 5s delay between the script running and loading the result. You could run a shorter delay and catch IO errors on the log file to determine the script had completed.

---

<div class="post-metadata">

**Author:** ![Mike\_Klemens](https://forum.xojo.com/letter_avatar_proxy/v4/letter/m/8c91f0/32.png) [@Mike\_Klemens](https://forum.xojo.com/u/Mike_Klemens)\
**Post date:** [December 29, 2016, 2:55pm UTC](https://forum.xojo.com/t/shell-and-output-redirection/35168/22 "2016-12-29T14:55:21Z")

</div>

Wow - thank you very much Wayne! As well as everyone else who contributed suggestions! I did find in my testing that the wscript OLE object that Neil suggested did somewhat work with a batch file but this is a much more comprehensive solution that I can expand on. Thank you Wayne and the rest of you for your time and effort with helping me solve this problem! It is very much appreciated!

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:35pm UTC](https://forum.xojo.com/t/shell-and-output-redirection/35168/23 "2020-10-29T18:35:36Z")

</div>



[Previous page](https://forum.xojo.com/t/shell-and-output-redirection/35168.md?page=1)
