Win32 registry file

Category: Python - Miscellaneous

This script opens a key in Win32 registry base like a file. All commands supported by StringIO are available. Open key in Win32 registry base like a file. All commands supported by StringIO are available : isatty,seek,tell,read,readline,readlines,truncate,write,writelines,flush.Exceptions :RegistryFileError : All exceptions.FileNotFoundError : File not found.InvalidModeError : Invalid mode error (not in "r","a","w","rb","ab","wb").BadFileDescriptorError : Bad file descriptor (write with file open in read mode).Sample :import RegistryFile # Open and create the key "HKEY_LOCAL_MACHINESoftwareRegistryFileTest" file = RegistryFile.RegistryFile(HKEY_LOCAL_MACHINE,"SoftwareRegistryFileTest","w")# Write datafile.write ("Hello world")# Destroy file (write file in registry base)del(file)# Open key in read modefile = RegistryFile.RegistryFile(HKEY_LOCAL_MACHINE,"SoftwareRegistryFileTest","r")# Read and display data storedprint file.read()# Delete registry keyfile.delete()Requirement:- win32con library Date: 01 April, 2012


Windows Registry - Registry Editor - Edit Registry Keys - Windows - Registry - Keys

Homepage: http://code.activestate.com/

Developer: code.activestate.com

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

This script is an example of how to use the winreg module.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script allows you to store some data for your progam in the windows registry without many complex operations.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This class extends ConfigParser class to make it able to read and write configuration settings from specified registry key.

developer Developer: code.activestate.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows


This module provides an advanced, easy-to-use API for accessing and mutating the Microsoft Windows Registry.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: Windows


This script provides "Registry", a Windows registry wrapper class that makes it easy to work with the Windows registry.

developer Developer: code.activestate.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows


We offer $1 Cheap, Free Setup, Reliable, Unlimited Domains Reseller/Shared Hosting.

developer Developer: Sonia
license License: Unknown
operating systems Operating System: Not Available


Providing both Windows and Linux shared website hosting.

developer Developer: Aaron
license License: GNU General Public License (GPL)
operating systems Operating System: Not Available


This script provides a class called LineIterator that iterates over every line in a list of files, performing the basic functionality as fileinput module in the standard library (which mimics Perl's operator).

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


It can be used to customize FTP or SVN pages, as a GUI for file handling and many other applications.

developer Developer: files.newroots.de
license License: Freeware
operating systems Operating System: All