This project provides a simple GUI application that allows users to select multiple files and append their contents into a single file. The resulting file is saved in the directory where the context menu option "Append Files Here" is selected.
- Graphical User Interface (GUI) for selecting files to append.
- Context menu integration for easy access.
- Automatically cleans up temporary files created during the process.
- Python 3.x
- Tkinter library (usually included with Python)
win32apiandwin32conlibraries (pywin32package)- Windows operating system
-
Clone the repository:
git clone https://github.com/yourusername/FileAppender.git cd FileAppender -
Install required Python packages:
pip install pywin32
append_files_gui.py: The main Python script for the GUI.launch_append_files_gui.bat: Batch file to launch the GUI with elevated privileges.register_context_menu.py: Python script to register the context menu item.deregister_context_menu.py: Python script to deregister the context menu item.register_context_menu.bat: Batch file to register the context menu item with elevated privileges.deregister_context_menu.bat: Batch file to deregister the context menu item with elevated privileges.
To add the "Append Files Here" option to the context menu:
- Run the
register_context_menu.batfile with elevated privileges:- Double-click
register_context_menu.bat. - This will request administrative privileges and run the registration script.
- Double-click
- Right-click in the background of a folder in Windows Explorer.
- Select "Append Files Here".
- The GUI application will open, allowing you to select files to append.
- The appended content will be saved to
appended_files.txtin the selected directory.
To remove the "Append Files Here" option from the context menu:
- Run the
deregister_context_menu.batfile with elevated privileges:- Double-click
deregister_context_menu.bat. - This will request administrative privileges and run the deregistration script.
- Double-click
The application will automatically clean up any temporary files it creates, such as file_appender.log.
- If the context menu item does not appear, ensure you have run the
register_context_menu.batfile with administrative privileges. - If you encounter any issues, check the
file_appender.logfile for debugging information.
This project is licensed under the MIT License. See the LICENSE file for details.