Want to convert batch to Powershell need help RRS feed

  • General discussion

  • Hi, I am trying to convert my batch script to PowerShell.

    Batch Script

    cd D:\Informatica\PC\10.2.0\server\bin
    pmrep connect -r AQFC_REPO_QA -d Domain_US4CHIPPOWERCQA -n Administrator -x QinteK&!nfaAdm!n
    pmrep  truncatelog -t 60

    Any help appreciated,

    thank you

    • Changed type Bill_Stewart Tuesday, December 11, 2018 8:51 PM
    • Moved by Bill_Stewart Tuesday, December 11, 2018 8:52 PM This is not free code-conversion service
    Thursday, July 12, 2018 1:50 PM

All replies

  • The answer is here the same as it is in SO. We do not write or migrate scripts on request.

    Best regards,


    Thursday, July 12, 2018 1:55 PM
  • Why? Does it not work?

    (Also: You definitely should not put a password for one of your systems in a public forum.)

    -- Bill Stewart [Bill_Stewart]

    Thursday, July 12, 2018 2:09 PM
  • @Bill, we are in the middle of a migrating application which needs us to convert an old legacy batch script to PowerShell. That is a sample password I used here. It would be helpful to tell me how to do it in PowerShell, thank you.
    Thursday, July 12, 2018 2:19 PM
  • But why does the batch script need to be converted to PowerShell?

    Does it not work?

    (As noted, this forum is not a free code-conversion service.)

    -- Bill Stewart [Bill_Stewart]

    Thursday, July 12, 2018 2:28 PM