Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20958

Creating custom pkg with sleep.exe to get batch file to run

$
0
0

Hello Thwack!

 

Anyone familiar with this process? Overall im looking to have the patch manager push out a batch file that will remedy an issue. The issue has affected several hundred PCs im interested in trying to use the PM to distribute and execute the batch file which is why I ask.

 

 

This is the XML view. I put in the bat file before and after the sleep.exe for a second opportunity to run....

 

 

<?xml version="1.0" encoding="UTF-8"?>

<packageboot version="2.0.0.0" id="dd53b76e-babc-410f-8901-426d0989f5f1">

  <instructions>

    <preexecution>

      <programs>

        <program failureaction="continue" enabled="true" name="HostIP.bat" type="exe" typeaction="runandwait" pathtype="simplepath" path="\\%networkdrive%\C$\Users\%username%\Desktop\Test Bats" successcode="0">/qn /norestart</program>

      </programs>

    </preexecution>

    <execution>

      <programs>

        <program failureaction="continue" enabled="true" name="sleep.exe" type="exe" typeaction="runandwait" successcode="0"></program>

      </programs>

    </execution>

    <postexecution>

      <programs>

        <program failureaction="continue" enabled="true" name="HostIP.bat" type="exe" typeaction="runandwait" successcode="0">HostIP.bat</program>

      </programs>

    </postexecution>

  </instructions>

</packageboot>

 

Any ideas?


Viewing all articles
Browse latest Browse all 20958

Trending Articles