https://github.com/ramezze/autodownloadsorganizer
A C++ script to automatically organize 'Downloads' directory by file types into categorized folders.
https://github.com/ramezze/autodownloadsorganizer
automation cpp cpp17 files folder organizer scripts
Last synced: 4 months ago
JSON representation
A C++ script to automatically organize 'Downloads' directory by file types into categorized folders.
- Host: GitHub
- URL: https://github.com/ramezze/autodownloadsorganizer
- Owner: RamezzE
- License: mit
- Created: 2023-10-30T12:06:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-31T00:35:25.000Z (almost 2 years ago)
- Last Synced: 2025-02-22T01:43:10.114Z (8 months ago)
- Topics: automation, cpp, cpp17, files, folder, organizer, scripts
- Language: C++
- Homepage:
- Size: 34.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AutoDownloadsOrganizer
A C++ script to automatically organize 'Downloads' directory by file types into categorized folders.It sorts files in the downloads directory into JPGs, PNGs, ZIPs etc. It creates the folders necessary if they aren't available.
This script will not overwrite your files if they have the same name. It will add it as: file (1).txt etc.
This script runs in the background, checking for changes in the directory every minute.
You can change the target folder by changing this in the main function of the code:
```
// use custom folder path. Example:
// targetDirectory = L"D:\\Photos"; // Uncomment this linetargetDirectory = getDownloadsFolder(); // Comment or remove this line
```## Building
### Terminal
- You can download the latest version of MinGW g++ from this link (https://www.msys2.org/)
```
g++ -std=c++17 -static-libgcc -static-libstdc++ -c main.cpp
g++ -std=c++17 -static-libgcc -static-libstdc++ -o main.exe main.o -mwindows -lole32 -lshell32 -luuid
```### MS Build (Visual Studio)
- Make sure the specified C++ version is C++17
- Add the following libraries to the additional libraries: lole32, lshell32, luuid### GNU Make
#### Prerequisites
- Install g++ on your device
- Install GNU Make on your device (https://www.gnu.org/software/make/)
- Clone the repository and run `make` in your terminal
- Run the file named 'AutoDownloadsOrganizer.exe'## License
This project is licensed under the [MIT License](LICENSE).