Created
April 24, 2014 09:38
-
-
Save goto-dev-null/11248379 to your computer and use it in GitHub Desktop.
Picasa Hidden Folder Finder
This file contains hidden or 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
@echo off | |
echo %%%%%%%%%%%%%%Picasa Hidden Folder Finder%%%%%%%%%%%%%% | |
REM Extremely short simple version is 'findstr /S /I /M /B "hidden" .picasa.ini' from the root folder. | |
echo. | |
set drive=%cd:~0,3% | |
echo Scanning %drive%..... | |
echo. | |
set i=1 | |
cd %drive% | |
SETLOCAL ENABLEDELAYEDEXPANSION | |
for /F "delims=" %%a in ('findstr /S /I /M /B "hidden" .picasa.ini') do ( | |
set __INIFILE.!i!=%%a | |
echo !i!. %drive%%%a | |
set /a i+=1 | |
) | |
IF %i%==1 (goto NoFiles) | |
echo S. SAVE | |
echo Q. QUIT | |
:DOUNTIL | |
set /p ChooseFile=Choose a file: | |
IF %ChooseFile%==Q (exit) | |
IF %ChooseFile%==q (exit) | |
IF %ChooseFile%==s (goto Save) | |
if %ChooseFile%==S (goto Save) | |
SETLOCAL ENABLEDELAYEDEXPANSION | |
FOR /F "tokens=2* delims=.=" %%A IN ('SET __INIFILE.') DO ( | |
IF %%A==%ChooseFile% ( | |
set var=%drive%%%B | |
set var=!var:Picasa.ini=! | |
echo Opening !var! | |
%SystemRoot%\explorer.exe "!var!" | |
goto DOUNTIL | |
) | |
) | |
echo That is not a valid selection. | |
goto DOUNTIL | |
:Save | |
FOR /F "tokens=2* delims=.=" %%A IN ('SET __INIFILE.') DO ( | |
echo %drive%%%B >> %~dp0PHFF.txt | |
) | |
echo Saved to %~dp0PHFF.txt | |
goto DOUNTIL | |
:NoFiles | |
echo. | |
echo No hidden Picasa albums were found on %drive% | |
echo. | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment