Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

Desktop Organizer V1

Haha whats up everyone. I'm not sure why I'm releasing this since I'm pretty sure It has been posted before but the ones I saw were pretty weak and I decided since I'm learning FOR statements and a bit of trimming I would Incorporated a little of both while making this. So yeah, this is my desktop organizer. It organizes: Executables, Shortcuts, Data Files, Information files, Documents, Powerpoints, Internet Links, PDF Files, Pictures, Music, WinRAR & Zips. It will create a main folder with individual folders labeled exactly what catagorys I just posted above. Enjoy 🤝

Code
@echo off >Nul
Title Basic Desktop Organizer ^| %~n0 ^| Public
color 07 & mode 80,25 & cls
echo =====================================================================
echo.Date   : %date%
echo.Weekday: %date:~0,3%
echo.Month  : %date:~4,2%
echo.Day    : %date:~7,2%
echo.Year   : %date:~10,4%
echo Pc/User: %computername%/%username%
echo -------------------------------------------------------------^<2015^>--
Set/p var1=Enter the name of your main content folder:
Mkdir C:\Users\%username%\Desktop\%var1%
for %%a In (C:\Users\%username%\Desktop\%var1%) Do (
mkdir "%%a\Executables"
mkdir "%%a\Shortcuts"
mkdir "%%a\Data Files"
mkdir "%%a\Information files"
mkdir "%%a\Documents"
mkdir "%%a\Powerpoints"
mkdir "%%a\Internet Links"
mkdir "%%a\PDF Files"
mkdir "%%a\Pictures"
mkdir "%%a\Music"
mkdir "%%a\WinRAR & Zips"
)
cls
for %%Q In (C:\Users\%username%\Desktop) Do (
move *.exe "C:\Users\%username%\Desktop\%var1%\Executables"
move *.lnk "C:\Users\%username%\Desktop\%var1%\Shortcuts"
move *.dat "C:\Users\%username%\Desktop\%var1%\Data Files"
move *.ini "C:\Users\%username%\Desktop\%var1%\Information files"
move *.doc "C:\Users\%username%\Desktop\%var1%\Documents"
move *.docx "C:\Users\%username%\Desktop\%var1%\Documents"
move *.rtf "C:\Users\%username%\Desktop\%var1%\Documents"
move *.txt "C:\Users\%username%\Desktop\%var1%\Documents"
move *.pptx "C:\Users\%username%\Desktop\%var1%\Powerpoints"
move *.ppt "C:\Users\%username%\Desktop\%var1%\Powerpoints"
move *.url "C:\Users\%username%\Desktop\%var1%\Internet Links"
move *.pdf "C:\Users\%username%\Desktop\%var1%\PDF Files"
move *.png "C:\Users\%username%\Desktop\%var1%\Pictures"
move *.jpg "C:\Users\%username%\Desktop\%var1%\Pictures"
move *.ico "C:\Users\%username%\Desktop\%var1%\Pictures"
move *.bmp "C:\Users\%username%\Desktop\%var1%\Pictures"
move *.jpeg "C:\Users\%username%\Desktop\%var1%\Pictures"
move *.gif "C:\Users\%username%\Desktop\%var1%\Pictures"
move *.mp4 "C:\Users\%username%\Desktop\%var1%\Music"
move *.mp5 "C:\Users\%username%\Desktop\%var1%\Music"
move *.mp3 "C:\Users\%username%\Desktop\%var1%\Music"
move *.wav "C:\Users\%username%\Desktop\%var1%\Music"
move *.webm "C:\Users\%username%\Desktop\%var1%\Music"
move *.zip "C:\Users\%username%\Desktop\%var1%\WinRAR & Zips"
move *.rar "C:\Users\%username%\Desktop\%var1%\WinRAR & Zips"
)
cls
echo Desktop contents have been successfully organized.
Timeout /T 3 >nul
@exit
If I was you i'd add a nobreak to that timeout
Spoiler (Click to View)

Other than that nice code and could be useful to use!
This should be looked into to do much much more:)!
Your scripts are getting more sophisticated all the time. :> And I love the HQ presentation.
(Feb 24, 2015 11:04 AM)annikk.exe Wrote:  Your scripts are getting more sophisticated all the time. :> And I love the HQ presentation.

Thanks annikk. I'm definitely trying my best. 🎉


(Feb 24, 2015 10:34 AM)Recoome Wrote:  If I was you i'd add a nobreak to that timeout
Spoiler (Click to View)

Other than that nice code and could be useful to use!
This should be looked into to do much much more:)!

Yeah your right about the break. I forgot all about that command. 🤝
(Feb 24, 2015 12:14 PM)Baltazar- Wrote:  Thanks :) :):):):):):):):):):):):):):):):):):):):):):):):):):)

Your obviously spamming comments to increase your post count. I know the 35 character limit crap. There is no need for that many smiley faces. I'm flattered but I'm pretty sure you don't like my program that much...If you insist on spamming posts go to the lounge. 🤦‍♂
(Feb 24, 2015 01:12 PM)Ventriloquism Wrote:  Your obviously spamming comments to increase your post count. I know the 35 character limit crap. There is no need for that many smiley faces. I'm flattered but I'm pretty sure you don't like my program that much...If you insist on spamming posts go to the lounge. 🤦‍♂

Couldn't agree any more, didn't even think folder organisers were possible in batch


(Feb 24, 2015 01:12 PM)Ventriloquism Wrote:  Your obviously spamming comments to increase your post count. I know the 35 character limit crap. There is no need for that many smiley faces. I'm flattered but I'm pretty sure you don't like my program that much...If you insist on spamming posts go to the lounge. 🤦‍♂

Couldn't agree any more, didn't even think folder organisers were possible in batch
(Feb 24, 2015 01:55 PM)Recoome Wrote:  Couldn't agree any more, didn't even think folder organisers were possible in batch

Yeah there possible lol. I just though it would be nice to make something like this in case your whole desktop was a mess and you needed a quick cleanup without downloading a program like Fences-2 or something like that. Plus theres no room to gain a virus infection. You just simply compile. I've honestly seen a couple of these before, but I don't think they were as extensive as mine...so idk. I made my own. 😁
will not work for me C:\Users\%username% easy fix
(Feb 24, 2015 02:22 PM)Only3 Wrote:  will not work for me C:\Users\%username% easy fix

I'm confused what your asking? What exactly won't work?
(Feb 24, 2015 02:22 PM)Only3 Wrote:  will not work for me C:\Users\%username% easy fix

Actually you should probably use %userprofile%. Not everyone (though mostly everyone) has their drive named C:\
(Feb 24, 2015 03:27 PM)ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™ Wrote:  Actually you should probably use %userprofile%. Not everyone (though mostly everyone) has their drive named C:\

Hmmm, never really considered that, I'll remember that next time. 😏 Thanks Icarus

(Feb 24, 2015 02:22 PM)Only3 Wrote:  will not work for me C:\Users\%username% easy fix

Sorry about that Only3. Just do what Icarus said and replace the "C:\Users\%username%" with "C:\Users\%userprofile%". My fault 🤫
(Feb 24, 2015 03:37 PM)Ventriloquism Wrote:  Hmmm, never really considered that, I'll remember that next time. 😏 Thanks Icarus

Sorry about that Only3. Just do what Icarus said and replace the "C:\Users\%username%" with "C:\Users\%userprofile%". My fault 🤫

No... %userprofile% in this case WOULD be C:\users\USERNAME.

Try them in cmd.
echo %username%
echo %userprofile%
(Feb 24, 2015 04:10 PM)ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™ Wrote:  No... %userprofile% in this case WOULD be C:\users\USERNAME.

Try them in cmd.
echo %username%
echo %userprofile%

Wow lol. Yeah not sure why I did that. In retrospect I just copied and pasted bcz I didnt want to retype the whole thing in bold so idk... I forgot to take away the path. Makes sense considering I've used %userprofile% before. 🤦‍♂
Retard mode: ON
it was for op > "easy fix" as some use different drive 😊
A cool feature would be being able to create folders and extensions which would be used when sorting.

Heres a representation of what I mean but in C#:
Image (Click to View)

But obviously yours would be in the command line.
Skype: happy.cbb
0x38E6A0912657E


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by fisica638Sep 3, 2020 01:44 PM 6 223 Sep 3, 2020 01:44 PM
Last Post: IGK4L
[Shell] by VentriloquismSep 1, 2016 09:54 AM 11 634 Sep 1, 2016 09:54 AM
Last Post: ︻デ┳═ー
[Python] by Tripo5Jun 17, 2016 10:45 AM 7 388 Jun 17, 2016 10:45 AM
Last Post: Tripo5