[wpkg-users] [OT] 'for' madness...
Marco Gaiarin
gaio at sv.lnf.it
Thu Mar 21 10:58:28 CET 2013
I'm trying to build a cmd script, doing what i'm think are simple
tasks, but i'm hitting some trouble doing a nested 'for'.
Example:
for %%G in (%APPDATA%\Mozilla\Firefox\Profiles %APPDATA%\Thunderbird\Profiles) do (
echo %%G
if exist "%%G" (
if defined SQLITE (
echo %SQLITE%
for /d /r %%X in (%%G\*.sqlite) do (
echo %SQLITE% "%%X" VACUUM
echo %SQLITE% "%%X" REINDEX
)
)
)
)
Inside the first for, 'echo %%G' works, the exist check works, but the
use of %%G in the second for not, and if i try to define a variable,
eg:
set test=%%G
%test% is empty.
What i'm missing? Thanks.
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.sv.lnf.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797
Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/chi_siamo/5xmille.php
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
More information about the wpkg-users
mailing list