Thanks for providing this Nenad. I've had a few instances of dubious messages coming through recently which this should help with. I haven't had experience with Policy Tasks but through some investigation, it looks like you need to escape the double quotes you added around the ~F argument.
So
Task: "ZIP-EXE",17,0,"C:\\MERCURY\\ZIP-EXE\\zip-exe.bat ~X ~R "~F" ~Z","","",0,"Admin"
becomes
Task: "ZIP-EXE",17,0,"C:\\MERCURY\\ZIP-EXE\\zip-exe.bat ~X ~R \"~F\" ~Z","","",0,"Admin"
If this isn't done, some of the fields in the 'Edit policy task' dialog are incorrect, namely:
Commandline: C:\\MERCURY\\ZIP-EXE\\zip-exe.bat ~X ~R
Sentinel file: ~F" ~Z"
Parameter: 0
Thanks again
<p>Thanks for providing this Nenad. &nbsp;I've had a few instances of dubious messages coming through recently which this should help with. &nbsp;I haven't had experience with Policy Tasks but through some investigation, it looks like you need to escape the double quotes you added around the ~F argument.</p><p>So &nbsp;</p><p><i style="font-family: Tahoma, Arial, Helvetica; font-size: 12px;">Task: "ZIP-EXE",17,0,"C:\\MERCURY\\ZIP-EXE\\zip-exe.bat ~X ~R "~F" ~Z","","",0,"Admin"</i></p><p><i style="font-family: Tahoma, Arial, Helvetica; font-size: 12px;"></i>becomes</p><p><i style="font-family: Tahoma, Arial, Helvetica; font-size: 12px;">Task: "ZIP-EXE",17,0,"C:\\MERCURY\\ZIP-EXE\\zip-exe.bat ~X ~R \"~F\" ~Z","","",0,"Admin"</i>&nbsp;</p><p>&nbsp;</p><p>If this isn't done, some of the fields in the 'Edit policy task' dialog are&nbsp;<span style="font-family: Tahoma, Arial, Helvetica; font-size: 12px;">incorrect, namely:</span></p><p>Commandline: &nbsp;<span style="font-family: Tahoma, Arial, Helvetica; font-size: 12px;">C:\\MERCURY\\ZIP-EXE\\zip-exe.bat ~X ~R</span></p><p>Sentinel file: ~F" ~Z"</p><p>Parameter: 0</p><p>&nbsp;</p><p><span style="font-size: 10pt;">Thanks again</span></p><p>&nbsp;</p>