matgold
asked on
how to pass variable from perl script to batch file
how to pass variable from perl script to batch file?
perl script:
$fpword = "xxxx";
system("D:\\test.bat %$fpword%");
batch script:
echo "%1", I'm getting blank
perl script:
$fpword = "xxxx";
system("D:\\test.bat %$fpword%");
batch script:
echo "%1", I'm getting blank
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The % is how a batch file would access a variable.
ASKER
I saw an example on Google that used "%", I guess that wasn't right