I am writing a batch script that takes input args used for le script and runs the le command. I just have it taking the args from the command line and then calling the le command. This is my first batch script. I plan on expanding this script for user purposes.
::account key
set acckey=%1
::domain csr
set domcsr=%2
::domain key
set domkey=%3
::domain crt
set domcrt=%4
::domains
set domains=%5
::absolute path to verification files
set path=%6
::email tied to expiration of certificate
set email=%7
::perl command to generate certificate
start C:\Dwimperl\le --key %acckey% --csr %domcsr% --csr-key %domkey% --crt %domcrt% --domains
%domains% --path %path% --email %email% --live --unlink --generate-missing
When I run the command, I get the error The system cannot find the file C:\Dwimperl\le.
I have tried doing just
le --key %acckey% --csr %domcsr% --csr-key %domkey% --crt %domcrt% --domains %domains% --path %path% --email %email% --live --unlink --generate-missing
and
start le --key %acckey% --csr %domcsr% --csr-key %domkey% --crt %domcrt% --domains %domains% --path %path% --email %email% --live --unlink --generate-missing
and
.\le --key %acckey% --csr %domcsr% --csr-key %domkey% --crt %domcrt% --domains %domains% --path %path% --email %email% --live --unlink --generate-missing
With each I receive the error
'le' is not recognized as an internal or external command, operable program or batch file.
I have been running the script inside the directory where perl and le are installed. The arguments get assigned correctly. I am unsure how to properly call le in the script.