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

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.
  • Comment on Re^4: Calling Perl script from windows form

Replies are listed 'Best First'.
Re^5: Calling Perl script from windows form
by roboticus (Chancellor) on Apr 30, 2014 at 11:13 UTC

    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.

Re^5: Calling Perl script from windows form
by Anonymous Monk on Apr 30, 2014 at 10:25 UTC
    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.

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

        I gave the name of the function the OP needs to use, CreateProcess(), so yes, the OP needs to figure it out , because it is off topic to ask the perlmonks to write C# code for you, see Where should I post X?

        This is PerlMonks. Stay on topic. This is not the place to ask about bugs in your javascript (or the other 'j' language) nor how to learn write a formula in a spreadsheet, even though there are many Monks knowledgeable in such disciplines.