Created
April 22, 2012 03:49
-
-
Save jiminald/2448284 to your computer and use it in GitHub Desktop.
Cleans the Users desktop to a preset folder. As the desktop is loaded when the machine is started, it preloads its content, this moves the user data into the my documents so PC bootup time is faster.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REM ==== Windows XP ==== | |
| cd "C:\Documents and Settings\User\Desktop" | |
| mkdir "C:\Documents and Settings\User\My Documents\Desktop" | |
| for /r %%x in (.,^) do move /Y "%%x" "C:\Documents and Settings\User\My Documents\Desktop" | |
| REM ==== Windows Vista, 7, + ==== | |
| cd "C:\Users\User\Desktop" | |
| mkdir "C:\Users\User\Documents\Desktop" | |
| for /r %%x in (.,^) do move /Y "%%x" "C:\Users\User\Documents\Desktop" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment