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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -