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.
- 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
- Create a registry key
- Remove a registry key
- Write a string value to a registry key
- Python 3
- Windows OS
- Administrator permissions for some registry operations
python main.py [command] [arguments]python main.py --create example.txtpython main.py --remove example.txtpython main.py --write example.txt "Hello, world!"python main.py --read example.txtpython main.py --copy example.txt C:\Users\User\Documentspython main.py --rename old_name.txt new_name.txtpython main.py --createKey HKEY_CURRENT_USER Software\TestKeypython main.py --removeKey HKEY_CURRENT_USER Software\TestKeypython main.py --writeToKey HKEY_CURRENT_USER Software\TestKey ValueName ValueDataHKEY_CLASSES_ROOTHKEY_CURRENT_USERHKEY_LOCAL_MACHINEHKEY_USERSHKEY_CURRENT_CONFIG
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.
- Python
- argparse
- os
- shutil
- winreg