Page 1 of 1

Sort your downloads folder!

Posted: Fri Mar 15, 2019 12:35 am
by larson377
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 ;)
downloads.JPG
downloads.JPG (21.81 KiB) Viewed 6141 times
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 :D

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.
p2r card.JPG
p2r card.JPG (51.31 KiB) Viewed 6141 times

Hope you guys enjoy it, cheers! :mrgreen:

Re: Sort your downloads folder!

Posted: Sat Apr 06, 2019 6:16 pm
by Ryuisnod
This looks excellent. Will probably set it up as a scheduled task more than voice activated. Where did you find the script?

Re: Sort your downloads folder!

Posted: Sun Apr 07, 2019 9:54 pm
by larson377
im not sure, i did some google searching for useful batch programs a while back and it came up in an article.

Re: Sort your downloads folder!

Posted: Wed Apr 24, 2019 10:41 am
by Wizerd
Nice little script. Thanks for sharing. Worked like a charm (and fast)