Created
September 26, 2016 20:53
-
-
Save r0mdau/76f365c4797c358cd43ba63e36ae211c to your computer and use it in GitHub Desktop.
This file contains 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
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