Batch file output

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9138
    cacalex
    Participant

    Hi,

    I am trying to run a simple batch file on remote computers, and retrieve the output.

    This is the file:


    @echo off

    echo Test


    I did create a new deployment, checked the “retrieve output” checkbox, but it does not work.

    I get “Could not find file ‘\(computer name)C$Program FilesBatchPatchdeploymentBatchPatchDeploymentOutput1559882188.log’.” and exit code:1

    What am I doing wrong?

    How can I run a batch file and get the output of it?

    Thanks!

    #11009
    doug
    Moderator

    Unfortunately this feature will not work with all scripts in all cases and will sometimes cause a deployment to fail/error. A couple of alternatives:


    You could use a vbscript file (filename.vbs) with content:

    wscript.echo “hello”


    You could us a powershell file (filename.ps1) with content:

    write-host hello


Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.