cmd - Pass Environment Variable as command line argument -
i trying script install of application requires hostname in argument string.
"c:\application.exe" /host=hostname
but keeps taking whatever put argument value literal. suggestions?
%hostname% how use environment variables in windows.
c:\application.exe /host=%hostname%
Comments
Post a Comment