Search code examples
firefoxbatch-filecdappdata

How to access to AppData folder?


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


Solution

  • 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