Skip to content

Instantly share code, notes, and snippets.

@dash17291
Created July 5, 2013 12:39
Show Gist options
  • Save dash17291/5934267 to your computer and use it in GitHub Desktop.
Save dash17291/5934267 to your computer and use it in GitHub Desktop.
@echo off
setlocal EnableDelayedExpansion
for %%u in (a b c) do (
set USER=%%u
for /f "usebackq tokens=2 delims=/" %%p in (`find /i "Path" "Users\!USER!\AppData\Roaming\Mozilla\Firefox\profiles.ini"`) do (
set PROFILE=%%p
echo "profile: !PROFILE!"
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment