Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win32::TieRegistry Question

Status
Not open for further replies.

Shqipetari

Technical User
Joined
Dec 1, 2006
Messages
2
Location
US
I am trying to write a script that will parse certain keys from offline registry files (i.e. SAM, SYSTEM, SOFTWARE, and NTUser.dat files). I have stored these files in my local drive under: C:\regfiles\

It seems to me that by default this module points to the systems registry files. Is there a way to tell it to open one of the registry files in my C:\regfiles\ folder?

Thank you for your help.
 
This should work..
Code:
my $key = new Win32::TieRegistry "C:\\regfiles\\folder",
	{
		Access    => KEY_READ() | KEY_WRITE(),
		Delimiter => "\\"
	};

M. Brooks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top