in reply to Export variables from perl to a bat file

I don't know how complex or long your batch file is but when I do this sort of thing, my habit has been to rewrite the entire batch file rather than trying to pass variables to a static batch file.

Then its simply a matter of executing the batch file with all necessary info included.

Admittedly this is not an answer to your question but is an alternative approach to the underlying requirement.

<><

generator

  • Comment on Re: Export variables from perl to a bat file