Skip to content

Quickly create and move files into folders. Designed specifically to be Windows context menu option.

License

Notifications You must be signed in to change notification settings

DarthDobber/Folderize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Folderize

I regularly am faced with the task of moving large numbers of files into folders of their own. For example, if the file is named john.mp3 I will usually create a directory named john, then cut and paste the file into said folder. By itself this isn't too much of a chore, however I usually have hundreds that I need to move. So, I created this small program to function as a Windows context menu function.

Now, all I have to do is to right click a file and select folderize and all the work is done for me. The best part is that this works for any number of files selected.

How to Use

The script itself takes imput from command line arguments. For example:

python.exe folderize.py "D:\Users\james.WINDOWSPC\Documents\The Witcher 3\user.settings"

Will create a folder named "user.settings" at the location "D:\Users\james.WINDOWSPC\Documents\The Witcher 3" and then move the file user.settings into the folder.

To use as a Windows context menu option:

  • Put "folderize.py" into a folder of your choosing.
  • Open the registry by right clicking the start icon and selecting run.
  • Type "regedit" and click ok
  • Browse to "HKEY_CLASSES_ROOT\*\shell
  • Right click on shell and add a new key
  • Rename the new key to what you would like the context menu option to be, I choose "Folderize".
  • Right click the new key and select new key.
  • Name this key "command"
  • Double-click the default string value under the new command key
  • Type the following into the value data field:
    • "location_of_python_3_executable" "location_of_folderize_script" %1

Now you should be able to right click any file and easily move it into a folder of its own.

Additionally, the script logs it's actions so that you can undo anything you happen to do by accident. By default the log location is set to "C:\Scripts\folderize.log" but you can change it to whatever you like.

About

Quickly create and move files into folders. Designed specifically to be Windows context menu option.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages