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

c - Calling a function within a loop -

vb.net - Unbound DataGridView add row with checkbox error -

How i fill combobox items in Radgridview manually using in vb.net -