locked
Execute a command line executable from an already open Cmd Shell RRS feed

  • Question

  • I have a need to open a command shell and then execute a number of command within that shell.  As I see it, my options are to execute a simple batch file and get very little feed back, or write a batch file with error checking and some kind of reporting.

    What I would REALLY like to do, is open a command shell, and then have PowerShell send commands one at a time to that shell.  It would allow me to do error checking and correction, as well as make the process more dynamic.  Can I do something like that?  How?

    Friday, October 6, 2017 2:10 PM

Answers

  • No and what you are asking makes no sense.  Put your commands in a file and run the file.

    First learn PowerShell and this will not seem like such a mystery.


    \_(ツ)_/

    • Marked as answer by JT65 Friday, October 6, 2017 2:21 PM
    Friday, October 6, 2017 2:15 PM

All replies

  • No and what you are asking makes no sense.  Put your commands in a file and run the file.

    First learn PowerShell and this will not seem like such a mystery.


    \_(ツ)_/

    • Marked as answer by JT65 Friday, October 6, 2017 2:21 PM
    Friday, October 6, 2017 2:15 PM
  • Very well. I'll just have to brush up on my batch file skills.
    Friday, October 6, 2017 2:21 PM