Skip to content

Instantly share code, notes, and snippets.

@seaneshbaugh
Created May 1, 2020 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seaneshbaugh/43aa7f59c96bd19f0697cb3798d26e5d to your computer and use it in GitHub Desktop.
Save seaneshbaugh/43aa7f59c96bd19f0697cb3798d26e5d to your computer and use it in GitHub Desktop.
@echo off
set desktop_path="%HOMEPATH%\Desktop"
set documents_path="%HOMEPATH%\Documents"
set destination_path="%documents_path%\misc"
if not exist "%destination_path%" mkdir "%destination_path%"
forfiles /p %desktop_path% /m "*" /c "cmd /c move @file %destination_path%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment