John Darby
asked on
VBScript statement
I am wanting to echo to the name of the local system by querying the %computername% environment variable.
Wscript.echo %computername% doesn't work.
Can ya help me with the syntax?
Thanks,
JohnD
Wscript.echo %computername% doesn't work.
Can ya help me with the syntax?
Thanks,
JohnD
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks alot, BlueDevilFan!
Also, Gecko, I appreciate your input.
Also, Gecko, I appreciate your input.
You're welcome.
You're welcome, sorry about not saying much ( That was a vba example obviously ) but what I was getting at was that you could just use Environ("ComputerName")
I think there is a bit more to it then just that but the first solution is a good one.
I think there is a bit more to it then just that but the first solution is a good one.
http://www.bygsoftware.com/Excel/VBA/environment.htm