RegistryReadKey does not return value

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
skiko
Newbie
Posts: 8
Joined: Sun Dec 16, 2007 8:40 pm
Location: USA
Contact:

RegistryReadKey does not return value

Post by skiko » Mon Mar 11, 2013 6:13 pm

I am having trouble with RegistryReadKey not returning a value on windows 7, works on XP PRO

Code: Select all

RegistryReadKey>HKEY_LOCAL_MACHINE,SOFTWARE\NCR\SCOT - CoreApplication\ObservedOptions,ServerName,strValue

User avatar
Rain
Automation Wizard
Posts: 550
Joined: Tue Aug 09, 2005 5:02 pm
Contact:

Post by Rain » Tue Mar 12, 2013 12:22 pm

Works on my Windows 7 machine, logged in as the administrator.

I first had to write the value

Code: Select all

RegistryWriteKey>HKEY_LOCAL_MACHINE,SOFTWARE\NCR\SCOT - CoreApplication\ObservedOptions,ServerName,mjtnet.com
Reading the value with the code you posted returned "mjtnet.com"

Code: Select all

RegistryReadKey>HKEY_LOCAL_MACHINE,SOFTWARE\NCR\SCOT - CoreApplication\ObservedOptions,ServerName,strValue
mdl>strValue

User avatar
CyberCitizen
Automation Wizard
Posts: 721
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Post by CyberCitizen » Fri Mar 15, 2013 3:45 am

32/64bit?
FIREFIGHTER

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts