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.
In reply to Re: Best ways to run a windows batch with Perl
by BrowserUk
in thread Best ways to run a windows batch with Perl
by luxAeterna
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |