This is related to topic of getting computerName out of the Win OS box
here is a link:
thread96-565498 know I can get server name via ASP Request.ServerVariables("LOCAL_ADDR"
or Request.ServerVariables("SERVER_NAME"
but it doesn't help me as it gets me IP of the web site but I need the actual box name as I have various apps running on the same box with different IP addresses and I don't want to translate that this IP is this box etc
So my question is can I execute a bat file and grab its output ?
What I want to do is to execute this line in DOS:
echo %computername%
Is is possible ? Or ... maybe I can use some other ways of getting this info without use of enviroment variables ?
Thank you
Sergei
here is a link:
thread96-565498 know I can get server name via ASP Request.ServerVariables("LOCAL_ADDR"
So my question is can I execute a bat file and grab its output ?
What I want to do is to execute this line in DOS:
echo %computername%
Is is possible ? Or ... maybe I can use some other ways of getting this info without use of enviroment variables ?
Thank you
Sergei