1

I have to write a command line to access the profile folder whose path is:

C:\Users\mypc\AppData\Thinstall\Mozilla Maintenance Service\%AppData%\Mozilla\Firefox\Profiles

I used this command:

cd /D "%APPDATA%\Thinstall\Mozilla Maintenance Service\%AppData%\Mozilla\Firefox\Profiles"

but it's not working because %AppData% is a reserved name but here it is the folder name

4
  • Did you tried cd /D "%APPDATA%\Thinstall\Mozilla Maintenance Service\%%AppData%%\Mozilla\Firefox\Profiles" ?
    – mpromonet
    Dec 12, 2014 at 7:58
  • thanks for reply i traied that but its not work Dec 12, 2014 at 8:02
  • Without windows available, it was just a guess because %% is echoed %, but I see you got the correct escape using ^%
    – mpromonet
    Dec 12, 2014 at 14:07
  • yes ^% thats worked ^%appdata^% Dec 13, 2014 at 4:15

1 Answer 1

0

You don't use %appdata% twice. Type set app to see it's value.

So assuming your path is right

cd "%APPDATA%\Thinstall\Mozilla Maintenance Service\mozilla\Firefox\Profiles"

PS: Cd and notepad are the two commands that don't require quotes

5
  • thanks for replay but second %APPDATA% is exact name of folder when u use firefox portable in first time that make profiles folder in this path C:\Users\mypc\AppData\Thinstall\Mozilla Maintenance Service\%AppData%\Mozilla\Firefox\Profiles Dec 12, 2014 at 8:14
  • Remove the % signs around the second one. It itreally does have percent signs in it (what was mozilla thinking?) escapt them with the ^ caret. Dec 12, 2014 at 8:22
  • now i tried but its not work u can check this first make newfolder then rename to %appdata% now try access to this folder with command CD Dec 12, 2014 at 8:34
  • I did. Echo out your path. C:\Users\User>cd ^%appdata^% prints C:\Users\User\%appdata%>. Dec 12, 2014 at 8:43
  • @BambiLongGone : it could be nice to update the answer to give an easier access to the right answer instead of getting it from comments
    – mpromonet
    Dec 12, 2014 at 14:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.