搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

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

  • 2 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 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?

所有回复 (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

由NoahSUMO于修改

more options

See also -CreateProfile "profile_name profile_dir"