Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


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