tags:

views:

1812

answers:

3

What is the meaning of these Windows Enviroment variables:

  • HOMEDRIVE,
  • HOMEPATH,
  • HOMESHARE,
  • and USERPROFILE?

Who set them? When? Who use them? For doing what?

How the configuration of the samba server modify these variables?

Thanks!

A: 

if you go to the run box and type any of the above like this

%HOMEPATH%

then it will go to your environment path that is set on your machine. It's usefull when writing vb scrips and things like that where you want to perform a task on the users profile area for example.

Hope this helps

Andi
+2  A: 

Those are all set on login, and they are, as SocialAddict said, very useful in scripts when you need to perform an action on different systems.

I'm not too clear on your other question, a samba server shouldn't care about those variables.

See http://vlaurie.com/computers2/Articles/environment.htm for a detailed explanation.

lfaraone
A: 

Here is a more comprehensive list of Windows Environment Variables with their locations on:

  • Windows XP
  • Vista

http://en.wikipedia.org/wiki/Environment%5Fvariable#Default%5FValues%5Fon%5FMicrosoft%5FWindows

Clay Nichols