Skip to content

Simple C++ 17 program to sort items to folder (Current Version Windows).

License

Notifications You must be signed in to change notification settings

Undid-Iridium/Sort-To-Folder

Repository files navigation

Sort-To-Folder

C++ 17 program to sort items to folder (Current Version Windows + Linux (DLL + C# on Linux from Windows is not as easy as I thought)).

Deposition

I was getting really annoyed at how much space was using in my download folder, just a bunch of files just everywhere so I made a program to sort the important file types (PDF, JPG, MP3, MP4, Etc.), and any I didn't think of. The ones that I can't predict would sort themselves into their own folders based on the name of the file after the last period in the file name. This is Windows (And now Unix) based since I use a Windows PC. I started this 12/28/18 at 12:30AM, issues arose as C++ 17 and Windows API do not exactly play along, and Wstring whilst in C++ 17 combined with Windows 10 also did not play along quite well. I also was unable to use depreciated (or rather became aware that I should not use them); furthermore, API calls to create folders (Possibly through mkdir, system calls, etc.) were utilized to help with the process. As for the Multi-Platform aspect I refused to use any third party/functionality (This took a while to think through and a lot of searching of the costs and benefits). I wanted my application to run on the systems I choose, with the license I choose, the way I wanted it too. If I needed more functionality, and more support then I would use one (Examples in the links below).

This is designed to work only from the Downloads folder on someone's computer. (Whole purpose of using Windows API calls) It can now do any location you provide given that the location actually exists.

Usage is the following:

  1. Run Executable (With corresponding files (DLL, LIB))
    1. Write sort locations, EX: C:\Users\USERNAME\Downloads
    2. Show Current Locations, Shows the currently listed location provided by the user.
    3. Sort Data, Runs sort functions in locations provided
    4. Quit (Exit program)
    5. ReadMe (Explains this information briefly).

Intentions

  • Ubuntu 16.04 Adaptation (Can run on Windows 10 (Windows 7 & Later) & Ubuntu 16.04 (Unix Systems that can run C++17 should be fine & Later than Ubuntu 12.04))
  • Reduce Redundancy [XXXXXXXXXXXXXXOOO] 86%
  • Add more specific cases Done
  • Try to integrate website download information to better sort data (Unlikely as I would have to keep constant track of chrome/website downloads, in which, I will likely be making a chrome web extension to alter file names to include host download site). Nope
  • Potentially integrate method (Image recognition) to determine NSFW/SFW Data to sort appropriately. No thanks.
  • Add GUI so users can request location to sort data, time limit, etc. C++ GUI Done
  • Maybe cross-code with python for more difficult tasks regarding image recognition. Nope

Windows API to convert WString/String
Windows API to create folders
Windows WideCharToMultiByte Example
Cross Platform Link 1 (Easiest Way to Cross Platform)
Cross Platform Link 2 (Learning Cross Platform C)
Cross Platform Link 3 (C App Cross Platformed?)

About

Simple C++ 17 program to sort items to folder (Current Version Windows).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published