Search found 2 matches

by Marrone
07 Jul 2009 14:03
Forum: DOS Batch Forum
Topic: Custom directory listing
Replies: 4
Views: 7254

Rick, The environment variables actually works, but I'll quote them to avoid unintentional problems. Thanks for this tip. The problem I'm giving is that the nested for doesn't working, even that it's apparently Ok. The if statement passes, but the nested for doesn't iterate over. Thanks anyway.
by Marrone
07 Jul 2009 08:42
Forum: DOS Batch Forum
Topic: Custom directory listing
Replies: 4
Views: 7254

Custom directory listing

What I have to do to make this code works? for /d %%d in (%APPDATA%\Mozilla\Firefox %LOCALAPPDATA%\Mozilla\Firefox) do ( if exist %%d ( for /r %%f in (%%d\*.sqlite) do ( set name=%%~nf . set name=!name:~0,14! set size=%%~zf echo.!name! !size! ) ) ) Thanks anyw...