Launch perl script with Powershell RRS feed

  • Question

  • Hi,

    I'm exploring the possibilities of Powershell and I'm wondering if it's possible to launch a perl script in Powershell.

    First, I need to move a couple of files from directory A to B.
    Secondly I need to launch a Perl script. This script will perform some data processing on the files in directory B

    The first part is not an issue. But I'm having issues with the second part.

    The perl script is in folder C:\Customer\DirectoryB => name: parsing.pl

    I'm trying with the script:

    start-process perl parsing.pl

    But this isn't working. I'm getting the error message "This command cannot be run due to the error: the system cannot find the file"

    I already tried adding the directory C:\Customer\DirectoryB, but this isn't working.

    Who can help me?

    Thanks in advance for the help.

    Best regards,
    Thursday, January 4, 2018 7:24 AM

All replies

  • Use full paths to files.

    Start-Process -FilePath perl -Argumentlist  C:\Customer\DirectoryB\parsing.pl

    Start here: Learn PowerShell  


    • Proposed as answer by I.T Delinquent Thursday, January 4, 2018 9:24 AM
    • Edited by jrv Thursday, January 4, 2018 9:30 AM
    Thursday, January 4, 2018 9:18 AM
  • Hi,

    thanks for your reply.

    I'm getting the error message:

    Start-Process : A parameter cannot be found that matches parameter name 'Path'.

    Any idea?

    Thursday, January 4, 2018 9:29 AM
  • Sorry.  It should be "-FilePath".


    Thursday, January 4, 2018 9:30 AM