Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Learn More

profiles.ini unable to use windows parameters (%username%) in path

  • 2 odpovede
  • 1 má tento problém
  • 1 zobrazenie
  • Posledná odpoveď od cor-el

more options

hello, I'm setting up a TS enviroment with volatile profiles on TS 2008R2

I need every user to use theyr own profile at c:\firefox\%username%\defaultprofile (this folder is created by a logon script at the start of TS session from a master one and deleted at the end of the TS session)

everything is working perfectly (profiles.ini is saved in default user folder so is copied in every new created volatile profiles) except path with windows paramater %username%. -> firefox it's unable to find the profile.

If I manually edi profiles.ini changing %username% with the real username everything is OK, so I think the problem is here

There is another way to have a parameter inside the path?

hello, I'm setting up a TS enviroment with volatile profiles on TS 2008R2 I need every user to use theyr own profile at c:\firefox\%username%\defaultprofile (this folder is created by a logon script at the start of TS session from a master one and deleted at the end of the TS session) everything is working perfectly (profiles.ini is saved in default user folder so is copied in every new created volatile profiles) except path with windows paramater %username%. -> firefox it's unable to find the profile. If I manually edi profiles.ini changing %username% with the real username everything is OK, so I think the problem is here There is another way to have a parameter inside the path?

Všetky odpovede (2)

more options

Might this post get the job done?
http://forums.mozillazine.org/viewtopic.php?p=1793218#p1793218

FatJohn says:
In command prompt type: echo h:\home\%USERNAME%\profile > profile.ini or use >> instead of > to append it. Maybe you'll get it constructed the way you want.

It looks like if you create a batch (.bat) file with that line inside, you can just run that on each computer and have the correct username filled in automatically in the profiles.ini file.

Example: echo c:\firefox\%username%\defaultprofile >> profile.ini

Upravil(a) NoahSUMO dňa

more options

See also -CreateProfile "profile_name profile_dir"