环境变量是否特定于语言?
我需要在组策略中设置一个脚本,以便我们在世界不同地区使用。 %ProgramFiles% 等环境变量是否特定于语言?我希望 %ProgramFiles% 的脚本可以在西班牙和法国使用,即使他们的语言是针对特定区域设置的。
谢谢
I need to setup a script in group policy that we be used in different regions of the world. Are environmental variables such as %ProgramFiles% language specific? I'm hoping that a script of %ProgramFiles% can be used both in spain and france even though their language is setup for the specific regions.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不。它们不特定于语言。
当您使用 %ProgramFiles% 时,操作系统将检查 %ProgramFiles% 映射到的 Windows 注册表。此映射是在 Windows 安装期间完成的,因此使用占位符 %ProgramFiles% 您将获得与语言/国家/地区无关的解决方案。
No. They are not language specific.
When you use %ProgramFiles% the operating system will check in Windows registry where %ProgramFiles% maps to. This mapping is done during Windows installation and therefore using the placeholder %ProgramFiles% you'll have a language/country agnostic solution.
不,但要小心。我遇到了一个在“c:\Program Files”中查找的应用程序(显然是硬编码的)。尝试在德语(也许是法语?不记得了)版本的 Windows 上运行它。 “程序文件”是德语中的其他内容 - 我不记得是什么,但它没有按预期解析,当然程序失败了。
No, but do watch out. I encountered a application that looked in "c:\Program Files" (hard coded, apparently). Tried to run it on a German (maybe it was French? Don't recall) version of Windows. "Program Files" is something else in German - I don't recall what, but it didn't parse as expected and of course the program failed.