in reply to Re^2: Calling Perl script from windows form
in thread Calling Perl script from windows form

I know that, but I REALLY wanted to combine my perl script with C#. I guess I need to use command line. Thanks anyway :)

Um, huh? So your real question is how to call perl from C#? Or how to hide the console?

see Re^4: Wperl.exe fails with Tk + piped process ( Win32 ), and give CreateProcess the appropriate arguments

  • Comment on Re^3: Calling Perl script from windows form

Replies are listed 'Best First'.
Re^4: Calling Perl script from windows form
by Yona (Initiate) on Apr 30, 2014 at 10:22 UTC
    Given a windows forms application I have written in C#, I want that with a press of a button it will run a perl script, that analyses files from a given directory.

      Yona:

      Then you'll have to invoke your perl script like the command shell would. You can do so using the CreateProcess function.

      ...roboticus

      When your only tool is a hammer, all problems look like your thumb.

      Right, so far I don't hear a perl question ... figure it out

        Asking how to invoke Perl is a Perl-related question. Writing "figure it out" is totally useless in SOPW.