Skip to content

Instantly share code, notes, and snippets.

@hunterirving
Created April 29, 2022 12:53
Show Gist options
  • Save hunterirving/8b5fc739317edb298c9ebc7a941424e8 to your computer and use it in GitHub Desktop.
Save hunterirving/8b5fc739317edb298c9ebc7a941424e8 to your computer and use it in GitHub Desktop.
copy music to USB drive so i can listen to tunes in the car
@echo off
cls
:start
set choice=
xcopy /e /y /d C:\Users\Hunter\Music\*.* D:
goto wait
:check
timeout /t 1 /nobreak >nul
echo waiting
if exist F: (goto start) else goto check
:wait
timeout /t 1 /nobreak >nul
echo Waiting for removal
if exist F: (goto wait) else goto removed
:removed
echo removed
goto check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment