Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently September 28th, 2024, 5:22 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Getting the Computer Name
PostPosted: January 31st, 2012, 11:07 am 
Offline

Joined: January 31st, 2012, 8:09 am
Posts: 1
Opus: 7.06
OS: Windows 7
Hi
Can anyone tell me how I could get the "Computer Name" and feed it into a variable automatically. I am using Windows 7

Thanks

Allan


For this message AllanSwift has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Getting the Computer Name
PostPosted: January 31st, 2012, 11:52 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
I think you'll need to do that one via script.

Code:
computerName = ReadRegistryKey("HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\ComputerName\\ComputerName", "ComputerName")


Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


For this message mackavi has been thanked by : AllanSwift


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group