Redirecting the ‘My documents’ is not my problem.

I create a INI-file with a key for each UserId. Under a key some parameters with one for the locations where the user has his home location:

    ; A little part of the INI-file we use

    [L.Mol]
    DIV = IT
    DOC-ICNAME = Map IT
    DOC-ICTTIP =
    DOC-AFDSHR = Group
    DOC-AFDDIR = G:\head office\economic administrative department\information technology
    PER-LET001 = U:
    PER-MAP001 = \\App1\lmol$
    SHR-LET001 = K:
    SHR-MAP001 = \\App1\clienten
    SHR-LET002 = I:
    SHR-MAP002 = \\App1\install$

( created a small program to convert this INI file to CSV and backwards )

The values are read by the KiXscript . $UGET is the location of a central INI file. This could be a location at a windows 2000 Sysvol.

    ; Reading the INI-file
    $DOCICNAME = READPROFILESTRING ($UGET , @WUSERID, "DOC-ICNAME")
    $DOCICTTIP = READPROFILESTRING ($UGET , @WUSERID, "DOC-ICTTIP")
    $DOCAFDSHR = READPROFILESTRING ($UGET , @WUSERID, "DOC-AFDSHR")
    $DOCAFDDIR = READPROFILESTRING ($UGET , @WUSERID, "DOC-AFDDIR")

With this kix part, that was mentioned before I changed my registry settings to change the 'my documents' icon and folder settings:

    ; Changes for 'my documents'
    ; Folder change
    $X=WRITEVALUE ("SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\EXPLORER\SHELL FOLDERS" ,"PERSONAL",$DOCAFDDIR,"REG_SZ")
    $X=WRITEVALUE ("SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\EXPLORER\USER SHELL FOLDERS","PERSONAL",$DOCAFDDIR,"REG_SZ")
    ; Change ‘my documents’ in a new name for the icon
    $X=ADDKEY ("SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\EXPLORER\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}")
    $X=WRITEVALUE ("SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\EXPLORER\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}","",$DOCICNAME,"REG_SZ")
    $X=WRITEVALUE ("HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}","INFOTIP",$DOCICTTIP,"REG_SZ")
    $X=WRITEVALUE ("HKEY_LOCAL_MACHINE\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}","INFOTIP",$DOCICTTIP,"REG_SZ")

This works perfect. A program like Word/Excel and many other program reads the location for the string that was set in the script above, and use this path to save documents to. But with changing the name of a special folder like this, the user needs to refresh his desktop. With a centralized desktop, I don’t know if a script like above will work.