Pass parameters to bat compiled to exe.
Posted: 07 Nov 2016 07:24
Hi, I have an script that requiere parameters to complete your function.
Some like,
and then, c:\>script.bat Maradona!
but more complex.
This is simple, the question is that I need to compile to exe my script to hide the content, and when I do this I can't no more pass it the parameters.
c:\>script.exe Maradona! ---> error
How can I solve this?
Thanks.
Some like,
Code: Select all
echo %1
and then, c:\>script.bat Maradona!
but more complex.
This is simple, the question is that I need to compile to exe my script to hide the content, and when I do this I can't no more pass it the parameters.
c:\>script.exe Maradona! ---> error
How can I solve this?
Thanks.