BatchHacker

Desktop-Cleaner - Original Script

Jul 21st, 2013
574
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. REM #How to use it:
  2. REM #To start the program, you have to save it as a bat file.
  3. REM #save it to another folder on the best(NOT YOUR DESKTOP!), because otherwise the program classifies itself
  4. REM --
  5. REM (c) Copyright 2013 - BatchHacker
  6. @echo off
  7. color 0c
  8. :frame1
  9. cls & set ver=1.1 & title Desktop Cleaner [Files] Version: %ver% & echo [X] Clean Now & echo [ ] Credits & echo [ ] Exit & echo. & echo With the W button you can scroll up. & echo With the S button you can scroll down. & echo You can start the selection while pressing X & echo.
  10. choice /n /C:wsx
  11. if errorlevel 1 if not errorlevel 2 goto frame3
  12. if errorlevel 2 if not errorlevel 3 goto frame2
  13. if errorlevel 3 if not errorlevel 4 goto clean
  14. :frame2
  15. cls & echo [ ] Clean Now & echo [X] Credits & echo [ ] Exit & echo. & echo With the W button you can scroll up. & echo With the S button you can scroll down. & echo You can start the selection while pressing X & echo.
  16. echo.
  17. choice /n /C:wsx
  18. if errorlevel 1 if not errorlevel 2 goto frame1
  19. if errorlevel 2 if not errorlevel 3 goto frame3
  20. if errorlevel 3 if not errorlevel 4 goto Credits
  21. :frame3
  22. cls & echo [ ] Clean Now & echo [ ] Credits & echo [X] Exit & echo. & echo With the W button you can scroll up. & echo With the S button you can scroll down. & echo You can start the selection while pressing X & echo.
  23. echo.
  24. choice /n /C:wsx
  25. if errorlevel 1 if not errorlevel 2 goto frame2
  26. if errorlevel 2 if not errorlevel 3 goto frame1
  27. if errorlevel 3 if not errorlevel 4 goto exit
  28. :clean
  29. cls & cd %userprofile%\Desktop
  30. if not exist "Musik & Videos" md "Musik & Videos"
  31. if exist "*.mp3" move /Y "*.mp3" "Musik & Videos"
  32. if exist "*.mp4" move /Y "*.mp4" "Musik & Videos"
  33. if exist "*.amf" move /Y "*.amf" "Musik & Videos"
  34. if exist "*.ams" move /Y "*.ams" "Musik & Videos"
  35. if exist "*.acm" move /Y "*.acm" "Musik & Videos"
  36. if exist "*.aif" move /Y "*.aif" "Musik & Videos"
  37. if exist "*.aiff" move /Y "*.aiff" "Musik & Videos"
  38. if exist "*.au" move /Y "*.au" "Musik & Videos"
  39. if exist "*.aa" move /Y "*.aa" "Musik & Videos"
  40. if exist "*.aac" move /Y "*.aac" "Musik & Videos"
  41. if exist "*.fla" move /Y "*.fla" "Musik & Videos"
  42. if exist "*.flac" move /Y "*.flac" "Musik & Videos"
  43. if exist "*.kar" move /Y "*.kar" "Musik & Videos"
  44. if exist "*.mid" move /Y "*.mid" "Musik & Videos"
  45. if exist "*.midi" move /Y "*.midi" "Musik & Videos"
  46. if exist "*.ogg" move /Y "*.ogg" "Musik & Videos"
  47. if exist "*.oga" move /Y "*.oga" "Musik & Videos"
  48. if exist "*.ogv" move /Y "*.ogv" "Musik & Videos"
  49. if exist "*.ts" move /Y "*.ts" "Musik & Videos"
  50. if exist "*.flv" move /Y "*.flv" "Musik & Videos"
  51. if exist "*.wmv" move /Y "*.wmv" "Musik & Videos"
  52. if exist "*.mpg" move /Y "*.mpg" "Musik & Videos"
  53. if exist "*.mpeg" move /Y "*.mpeg" "Musik & Videos"
  54. if exist "*.avi" move /Y "*.avi" "Musik & Videos"
  55. if exist "*.3gp" move /Y "*.3gp" "Musik & Videos"
  56. if exist "*.mov" move /Y "*.mov" "Musik & Videos"
  57. if exist "*.rm" move /Y "*.rm" "Musik & Videos"
  58. if not exist "Spiele & Anwendungen" md "Spiele & Anwendungen"
  59. if exist "*.exe" move /Y "*.exe" "Spiele & Anwendungen"
  60. if not exist "Scripts" if exist "*.bat" md Scripts
  61. if not exist "Scripts" if exist "*.cmd" md Scripts
  62. if not exist "Scripts" if exist "*.ahk" md Scripts
  63. if not exist "Scripts" if exist "*.vbs" md Scripts
  64. if exist "*.bat" move /Y "*.bat" "Scripts"
  65. if exist "*.cmd" move /Y "*.cmd" "Scripts"
  66. if exist "*.ahk" move /Y "*.ahk" "Scripts"
  67. if exist "*.vbs" move /Y "*.vbs" "Scripts"
  68. if not exist "Bilder" md "Bilder"
  69. if exist "*.png" move /Y "*.png" "Bilder"
  70. if exist "*.ami" move /Y "*.ami" "Bilder"
  71. if exist "*.apx" move /Y "*.apx" "Bilder"
  72. if exist "*.bmp" move /Y "*.bmp" "Bilder"
  73. if exist "*.bw" move /Y "*.bw" "Bilder"
  74. if exist "*.cur" move /Y "*.cur" "Bilder"
  75. if exist "*.gif" move /Y "*.gif" "Bilder"
  76. if exist "*.jpg" move /Y "*.jpg" "Bilder"
  77. if exist "*.jpeg" move /Y "*.jpeg" "Bilder"
  78. if exist "*.jng" move /Y "*.jng" "Bilder"
  79. if exist "*.koa" move /Y "*.koa" "Bilder"
  80. if exist "*.msp" move /Y "*.msp" "Bilder"
  81. if exist "*.pic" move /Y "*.pic" "Bilder"
  82. if exist "*.rgb" move /Y "*.rgb" "Bilder"
  83. if exist "*.rgba" move /Y "*.rgba" "Bilder"
  84. if exist "*.sgi" move /Y "*.sgi" "Bilder"
  85. if exist "*.xcf" move /Y "*.xcf" "Bilder"
  86. if exist "*.png" move /Y "*.png" "Bilder"
  87. if exist "*.png" move /Y "*.png" "Bilder"
  88. if exist "*.png" move /Y "*.png" "Bilder"
  89. if not exist "Photoshop" if exist "*.psd" md Photoshop
  90. if exist "*.psd" move /Y "*.psd" "Photoshop"
  91. if not exist "Dokumente" md "Dokumente"
  92. if exist "*.odt" move /Y "*.odt" "Dokumente"
  93. if exist "*.ott" move /Y "*.ott" "Dokumente"
  94. if exist "*.sxw" move /Y "*.sxw" "Dokumente"
  95. if exist "*.stw" move /Y "*.stw" "Dokumente"
  96. if exist "*.doc" move /Y "*.doc" "Dokumente"
  97. if exist "*.rtf" move /Y "*.rtf" "Dokumente"
  98. if exist "*.txt" move /Y "*.txt" "Dokumente"
  99. if exist "*.html" move /Y "*.html" "Dokumente"
  100. if exist "*.xml" move /Y "*.xml" "Dokumente"
  101. if not exist "Archive" if exist "*.zip" md Archive
  102. if not exist "Archive" if exist "*.rar" md Archive
  103. if exist "*.zip" move /Y "*.zip" "Archive"
  104. if exist "*.rar" move /Y "*.rar" "Archive"
  105. if not exist "Java" if exist "*.java" md Java
  106. if not exist "Java" if exist "*.class" md Java
  107. if not exist "Java" if exist "*.jar" md Java
  108. if exist "*.java" move /Y "*.java" "Java"
  109. if exist "*.class" move /Y "*.class" "Java"
  110. if exist "*.jar" move /Y "*.jar" "Java"
  111. if not exist "Andere Dateien" md "Andere Dateien"
  112. move /Y "*.*" "Andere Dateien"
  113. cls
  114. echo I think your desktop is now clean!
  115. echo.
  116. echo You may refresh it to see the results.
  117. echo.
  118. echo Press any key to continue
  119. echo.
  120. timeout /t 10>>nul
  121. goto frame1
  122. :Credits
  123. cls
  124. echo Programm Developed by: & echo. & echo Alex Ehnes (www.fb.com/kuchennn) & echo. & echo We accept no liability for data losses. & echo. & echo Copyright (c) 2013 Alex Ehnes & echo. & echo To Update the File visit: pastebin.com/AdVsmxbv & echo. & echo Press any key to continue & timeout /t 10 >>nul & goto frame2
  125. :exit
  126. cls
  127. Exit
Advertisement
Add Comment
Please, Sign In to add comment