Skip to content

Instantly share code, notes, and snippets.

@r0mdau
Created September 26, 2016 20:53
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 r0mdau/76f365c4797c358cd43ba63e36ae211c to your computer and use it in GitHub Desktop.
Save r0mdau/76f365c4797c358cd43ba63e36ae211c to your computer and use it in GitHub Desktop.
set /a count=0
if exist "*.*" for /f "delims=" %%a in ('dir /od /b "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\Cache\*.*"') do (
set variable=%%a
set /a count+=1
)
rem les fichier le plus ancien est %variable%
rem il y a %count% fichiers ver dans ce répertoire
set /p j=Ecris le nom du fichier souhaité :
if %count% GEQ 2 copy "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\Cache\%variable%" "%userprofile%\Desktop\%j%.mp3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment