[OpenAFS] OpenAFS on windows - profile in AFS, who uses it?

Christopher D. Clausen cclausen@acm.org
Sun, 10 Feb 2008 15:27:52 -0600


Rodney M. Dyer <rmdyer@uncc.edu> wrote:
>  So the only variable we have left is
> "%username%".  How am I supposed to setup folder redirection?
> I can't use:
>      "n:\cell\usr\a\%username%\pc\win_data\Desktop"
>
> That won't work since the parent folders are different for every user.

I have not tested this (all my user directories are out of a single 
folder) but can one use the documented set command envirnoment variable 
display options (set /?) to obtain the first (second, third, etc.) 
letter of a username?

C:\>echo %USERNAME%
Administrator

C:\>echo %USERNAME:~0,1%
A

C:\>echo %USERNAME:~1,1%
d

<<CDC
-- 
Christopher D. Clausen