4
What paths are guaranteed to exist on a Windows Server 2008 R2 instance? A client is requiring that some instructions specify exact paths in all cases. (The person executing said instructions is not supposed to have to decide on any path themselves, even when the path makes absolutely no difference.) So I need to know what paths I can rely on to be there. It's fine with me if they involve environment variables, but they need to be variables guaranteed to hold an existing path. (That is, no modification to a path that doesn't exist possible.)
Or are there no guaranteed paths?
To be honest, I'm hoping the answer is that there are none. Then I can respond to this by telling them they have to guarantee me some paths exist before I can make the change. – jpmc26 – 2012-09-05T23:06:43.713
It is better to use environmental variables for paths rather than hard coded paths as some of the paths may change slightly, but the variable won't: http://www.technipages.com/list-of-windows-environment-variables.html
– MaQleod – 2012-09-05T23:10:22.353Fair enough, but are they guaranteed to represent existing locations? – jpmc26 – 2012-09-05T23:15:09.460
That is the point of environmental variables - a common variable name that holds specific details to the current system configuration. For instance, %HOMEPATH% will always point to the currently logged in user's home directory, this will always be a valid path. Better yet, that specific option will always be writable to the currently logged in user, so you won't have to worry about permissions getting in the way either (unlike if you chose %HOMEDRIVE%, where Group Policy may prevent a user from writing to). – MaQleod – 2012-09-05T23:21:52.150
Yes, many of the various environmental variables that point to folders must exist in order for Windows to operate. – afrazier – 2012-09-05T23:23:02.040
If someone would post that below and name one or two of them, I will accept it as the answer. – jpmc26 – 2012-09-05T23:24:15.017