views:

38

answers:

2

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

+1  A: 

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.

Leniel Macaferi
Do you have any MS reference to this?
WaterEdge
http://support.microsoft.com/kb/933700
Leniel Macaferi
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds_shelloverview.mspx?mfr=true
Leniel Macaferi
A: 

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.

mickeyf