ProPath is a Python program designed to help you keep your Windows desktop tidy by arranging desktop icons according to user-defined rules. It organizes desktop files into folders based on their file extensions.
- Define rules to move files with specific extensions into designated folders.
- Automatically organize files on your desktop based on the rules you set.
- Moves folders to a designated "Folders" directory, keeping the desktop clutter-free.
-
Ensure you have Python installed on your system. You can download it from python.org.
-
Make sure the
pywin32package is installed. You can install it using pip:pip install pywin32
-
Clone this repository or download the
ProPath.pyfile.
-
Open
ProPath.pyin a text editor. -
Modify the rules in the
__main__section to suit your needs. For example:propath.add_rule('.txt', 'Text Files') propath.add_rule('.jpg', 'Images')
-
Save your changes.
-
Run the script by navigating to its directory in a terminal or command prompt and executing:
python ProPath.py
- Adding Rules: Use the
add_rule(extension, folder_name)method to specify how files should be organized. Theextensionis the file type (e.g.,.txt,.jpg), andfolder_nameis where you want these files to be moved. - Default Folders: The script moves unclassified folders into a folder named "Folders" on the desktop. You can change this behavior by modifying the
move_foldermethod.
- The script is designed for use on Windows and may not function correctly on other operating systems.
- Be cautious when moving files, as this script will alter the location of your files based on the rules you set.
Contributions are welcome! Feel free to submit a pull request or open an issue to propose changes or report bugs.
This project is licensed under the MIT License. See the LICENSE file for details.