Sort your downloads folder!
Posted: Fri Mar 15, 2019 12:35 am
I found a super-handy folder organizing batch file online (cant remember the source, but here's your credit internet stranger!), and its been keeping my downloads folder mess-free! As handy as it is already, a little more automation is always welcome
Start with the the Organizer batch file:
1. make a blank text document, and open it up. copy & paste the text in between the lines below into it, and click File > Save As
----------------------------------------------------------------------------------------------------------
@echo off
rem For each file in your folder
for %%a in (".\*") do (
rem check if the file has an extension and if it is not our script
if "%%~xa" NEQ "" if "%%~dpxa" NEQ "%~dpx0" (
rem check if extension folder exists, if not it is created
if not exist "%%~xa" mkdir "%%~xa"
rem Move the file to directory
move "%%a" "%%~dpa%%~xa\"
))
----------------------------------------------------------------------------------------------------------
2. change the "Save as type" field from ".txt" to "All Files"
3. name it whatever you like, (I chose "ORGANIZE!") and add ".bat" at the end.
4. save it out in the open in your downloads folder for easy finding
5. now, head over Push2Run and make a new card. attached is an image of my card. KEEP IN MIND: the [YOUR WINDOWS USER ACCOUNT HERE] is a
placeholder. you need to put your own windows user name here. if you don't know it, you can right click on your newly-created ORGANIZE! file
and click properties - it will show you the location of your file and also your Windows User Account.
Hope you guys enjoy it, cheers!
Start with the the Organizer batch file:
1. make a blank text document, and open it up. copy & paste the text in between the lines below into it, and click File > Save As
----------------------------------------------------------------------------------------------------------
@echo off
rem For each file in your folder
for %%a in (".\*") do (
rem check if the file has an extension and if it is not our script
if "%%~xa" NEQ "" if "%%~dpxa" NEQ "%~dpx0" (
rem check if extension folder exists, if not it is created
if not exist "%%~xa" mkdir "%%~xa"
rem Move the file to directory
move "%%a" "%%~dpa%%~xa\"
))
----------------------------------------------------------------------------------------------------------
2. change the "Save as type" field from ".txt" to "All Files"
3. name it whatever you like, (I chose "ORGANIZE!") and add ".bat" at the end.
4. save it out in the open in your downloads folder for easy finding
5. now, head over Push2Run and make a new card. attached is an image of my card. KEEP IN MIND: the [YOUR WINDOWS USER ACCOUNT HERE] is a
placeholder. you need to put your own windows user name here. if you don't know it, you can right click on your newly-created ORGANIZE! file
and click properties - it will show you the location of your file and also your Windows User Account.
Hope you guys enjoy it, cheers!