Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

File System and Registry CLI

A small Python command-line utility for basic file system operations and Windows Registry management.

The project provides a simple CLI interface for creating, deleting, reading, writing, copying and renaming files, as well as creating, deleting and modifying Windows Registry keys.

Features

File system operations

  • Create a file
  • Remove a file
  • Write text to a file
  • Read file contents
  • Copy a file to another directory
  • Rename a file or directory

Windows Registry operations

  • Create a registry key
  • Remove a registry key
  • Write a string value to a registry key

Requirements

  • Python 3
  • Windows OS
  • Administrator permissions for some registry operations

Usage

python main.py [command] [arguments]

Commands

Create a file

python main.py --create example.txt

Remove a file

python main.py --remove example.txt

Write to a file

python main.py --write example.txt "Hello, world!"

Read a file

python main.py --read example.txt

Copy a file

python main.py --copy example.txt C:\Users\User\Documents

Rename a file or directory

python main.py --rename old_name.txt new_name.txt

Create a registry key

python main.py --createKey HKEY_CURRENT_USER Software\TestKey

Remove a registry key

python main.py --removeKey HKEY_CURRENT_USER Software\TestKey

Write a value to a registry key

python main.py --writeToKey HKEY_CURRENT_USER Software\TestKey ValueName ValueData

Supported Registry Root Keys

  • HKEY_CLASSES_ROOT
  • HKEY_CURRENT_USER
  • HKEY_LOCAL_MACHINE
  • HKEY_USERS
  • HKEY_CURRENT_CONFIG

Notes

Some registry operations may require administrator privileges. The project is intended for educational purposes and demonstrates basic command-line argument parsing, file handling, exception handling and interaction with the Windows Registry in Python.

Technologies

  • Python
  • argparse
  • os
  • shutil
  • winreg

About

A Python CLI utility for basic file system operations and Windows Registry management.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages