Scripts Index
Python File Management  

Win32 registry file

download download home home   report broken
important script information
company name:
code.activestate.com
license: Free
minimum requirements: Python
functional limitations:
Win32 registry file description
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 data
file.write ("Hello world")
# Destroy file (write file in registry base)
del(file)

# Open key in read mode
file = RegistryFile.RegistryFile(HKEY_LOCAL_MACHINE,"SoftwareRegistryFileTest","r")
# Read and display data stored
print file.read()
# Delete registry key
file.delete()

Requirement:
- win32con library
Similar scripts
Convert PDF to TIFF (Popularity: ) : This script is a very short code snippet illustrating how to convert individual pages of PDF documents to TIFF files, one TIFF file per page. It works only on Mac OS X with PyObjC installed.As a recipe the code is ...
Count PDF pages (Popularity: ) : Count PDF pages script is a simple way to count the pages of a PDF the pure Python way.
Iterate over .MP4 atoms (Popularity: ) : This script yields the atoms contained in an MP4 file. Mostly is used for extracting the tags contained in it (artist, title etc) using a convenience class (M4ATags). This script could be implemented as an generator.
Counting pages of PDF documents on Mac OS X (Popularity: ) : Given that PDF is a "native" data format on Mac OS X, it is very easy to get access to some properties of such documents. One is the number of pages. Using Python the necessary code to do this is ...
Counting pages of PDF documents on Mac O (Popularity: ) : Given that PDF is a "native" data format on Mac OS X, it is very easy to get access to some properties of such documents. One is the number of pages. Using Python the necessary code to do this is ...
Disk (Popularity: ) : This script provides a simple simulation of secondary memory and is primarily designed to provide a driver interface to a virtual hard drive. The interface is simple and allows the simulation of IO errors. Also provided are methods that allow ...
Cross Platform Excel Parsing With Xlrd (Popularity: ) : This script easily extract data from microsoft excel files using this wrapper class for xlrd. The class allows you to create a generator which returns excel data one row at a time as either a list or dictionary. This script ...
A Singleton log file creator (Popularity: ) : This class is a basic Singleton log file creator. It allows separate classes/modules to log their activities to the same file (even the same line if they want to).This is a quite basic log file creator, intended to assist in ...
Backup your files (Popularity: ) : Backup your files script makes backup versions for your files.It can be used for non-python source code also.
A Python script to test download mirrors (Popularity: ) : The concept of the script is straightforward: read the mirrors page from RedHat's web site, make a list of all the mirrors, test how long it takes to download from each, and present a sorted list of the results.

The first ...

User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Similar Software
Registry Recovery Toolbox (Popularity: ) : Registry Recovery Toolbox is a convenient, powerful and very effective software tool for recovering the Windows system registry. The program is based on a fast progressive algorithm that allows the program to recover items from the operating system registry and ...
Recovery Toolbox for Registry (Popularity: ) : Recovery Toolbox for Registry is a lightweight, yet powerful and very efficient registry recovery tool based on an advanced algorithm that will help you restore registry hives, keys and their values and bring your system back on track within the ...
Registry Pro (Popularity: ) : Registry Pro is an activeX registry control that gives developers easy and complete access to the power of registry programming. Works with VB, VBA and other ActiveX and COM DLL supporting languages. Includes a detailed help file, comprehensive example programs ...
Registry Drill (Popularity: ) : The Registry Drill is the most in-depth Registry utility and cleaner available today. It goes through the Registry character by character searching for any possible errors. A blank Key, a pointer to a non existing Key, a non existing file, ...
Registry Drill (Popularity: ) : The Registry Drill is the most in-depth Registry utility and cleaner available today. It goes through the Registry character by character searching for any possible errors. A blank Key, a pointer to a non existing Key, a non existing file, ...
Registry Defragmentation (Popularity: ) : Registry Defragmentation is a small utility that does gigantic improvements in computer performance. Registry is the core of any operating system and it is the proper functioning registry that determines how fast the computer boots up, launches applications and carries ...
Free Registry Defrag (Popularity: ) : During the normal operation of a Windows system, registry data is constantly being written to and removed from the registry. Over time this data becomes scattered within the registry file and when information is deleted from the registry holes are ...
WinMaximizer (Popularity: ) : Does your coffee go cold waiting for PC to boot up? Do error messages, computer crashes, and slow-to-load applications cut into your time-and your life? A bloated Windows registry is often the culprit. Over time it fills with malicious files, ...
Registry Gear (Popularity: ) : Registry Gear is the next generation of Windows registry cleaning and optimization tool. Using a state of the art scan engine it can give you a complete diagnosis of Windows registry, remove invalid registry entries, references and links, identify and ...
Registrar Registry Manager Lite 7.51 B (Popularity: ) : Registrar Registry Manager offers a very complete and safe solution to administrators and power users for maintaining the registry on both their desktops and remote computers on their network. Apart from common features such as those offered by the native ...
ad


Rate me
supported os
All
stats
downloads 7
version 1.1
size in Kb
popularity   
1003/372186
user rating 5/10
New Scripts
Popular Scripts
Latest Reviews