Skip to content

Instantly share code, notes, and snippets.

@jiminald
Created April 22, 2012 03:49
Show Gist options
  • Select an option

  • Save jiminald/2448284 to your computer and use it in GitHub Desktop.

Select an option

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.
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