in reply to Best ways to run a windows batch with Perl

Say I have a batch to set the environment variables (which in fact, I have: \dir00\exploit\script\dir_start.cmd) and it can not find some path in certain machines

In order to run a windows batch script, you'll need to invoke it within a cmd.exe session. You can do this from Perl using system.

But there is no point in doing so if all it does is set environment variables!

Because, once the batch file ends; the cmd.exe session will also end; and all the changes that the .bat file made to the environment will be lost.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re: Best ways to run a windows batch with Perl