Deployment Solution

 View Only
  • 1.  Syntax for powershell comments in DS6.9

    Posted Jan 15, 2015 05:15 AM

    Hello,

    i´m looking for the powershell syntax in ds 6.9 SP5/6 that the first comment is shown in run script overview.

    For Batch i can use REM and the Description for the embedded run script uses this as description.

    For vbscript 'comment uses this as description.

    i know that #powershell is for identify as a ps.1 and # for comments but never shown as script description.



  • 2.  RE: Syntax for powershell comments in DS6.9
    Best Answer

    Trusted Advisor
    Posted Jan 27, 2015 05:39 PM

    Have you tried this below? I don't think the UI code has been updated to reflect that hashes are comments for powerscript code. So using this multi-line powershell comment format might be the only workaround...

    #powershell
    <#
    REM Hello
    #>


  • 3.  RE: Syntax for powershell comments in DS6.9

    Posted Jan 28, 2015 04:31 AM

    The workaround works for me. Thank you.