I wanted to make a cmd-windows-backup-script for my four firefox profiles.
But I have a curious problem.
%%c and %%c in the set command have different values.
I think it's because the (...)
Any idea how I can fix this problem?
cd /D "%appdata%\Mozilla\Firefox\Profiles"
for /D %%c in (*) do (
echo %%c
set source="%appdata%\Mozilla\Firefox\Profiles\%%c"
set target="%appdata%\Mozilla\Firefox\Profiles\AutoBackup\%date%\%%c.7z"
echo %source%
echo %target%
rem here is now my zip action planned, but source and target have always the same name
timeout 5
)