WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

System Info

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to Obtain your Computer's Name

Keywords:   computer name computername	winsysifo

Question:

How can I obtain the "Computer Name"?

Answer:

Here is two different ways. Try...
a1=RegQueryValue(@REGMACHINE,"System\CurrentControlSet\control\ComputerName\ComputerName[ComputerName]")
Message("Registry Method",a1)


info=WinSysInfo()
cname=ItemExtract(1,info,@tab)
Message("WinSysInfo method",cname)

Article ID:   W13172
Filename:   Obtain Computer Name.txt
File Created: 2001:01:08:16:01:32
Last Updated: 2001:01:08:16:01:32