Link to home
Start Free TrialLog in
Avatar of matgold
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
ASKER CERTIFIED SOLUTION
Avatar of Adam314
Adam314

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of matgold
matgold

ASKER

Great Thank You !!!!
I saw an example on Google that used "%", I guess that wasn't right
The % is how a batch file would access a variable.