Execute .BAT File

//Execute .BAT File
Execute .BAT File 2017-09-07T22:18:45+00:00

The Toolkit Forums General Execute .BAT File

  • Author
    Posts
  • Josh
    Participant
    Post count: 4
    #2285 |

    Hello everyone, started to use PSADT recently and currently work on packaging up software deployment through SCCM.

    In the install section I have Execute-Process -Path ‘Setup.exe” -Parameters “/s /noreboot”

    In the Post-Install I am trying to run a batch file that will activate software. Can someone share with with me what method can I use to call the Batch File?

    Both Setup.exe and Activate.bat files are sitting in the same folder “Files”

    Thank You.

  • Josh
    Participant
    Post count: 4

    Please disregard this, I have found my solution, thank you!

  • JT-65
    Participant
    Post count: 10

    And your solution was…?

  • Josh
    Participant
    Post count: 4

    this is what I used and it works for me

    Start-Process “cmd.exe” “/c $dirSupportFiles\

  • JT-65
    Participant
    Post count: 10

    Thanks. I was having problems doing the same thing. I had tried something like that but eventually abandoned it an executed each command individually via Execute-Process. It gave me greater control, and better logging.

You must be logged in to reply to this topic.