Jochen,

3 things in return

1) There is a key in the registry called ProfilesDirectory under HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfilesList. (Make sure you are using Windws NT subkey.
Of course there are subkeys including SIDs, this have to be. But this is the best way to find out where the local profiles are stored. The ProfilesList entry is for Default User and All Users Profile important.
And all new users logging to that machine will get a local profile in that directory. You can change that and copy all profiles to another local hard drive. Key available on NT4, 2000 and I think XP as well.

2) EXIST is working in the way you are using this. Setting a var with these values.
It is working when you read a complete path without enviroment vars from the registry.
But it is not working in the way I am using it: combining a registry key including a enviroment var and a string.
The first two ways result in "+" the third in "c".
a) %SystemRoot%\Profiles\...
b) C:\WinNT\Profiles\... (from a key created)
c) %SystemRoot%\Profiles\... (not working if in key)

3) I am trying to copy one link into another because in the source folder is another file for 9x 9xnotpad.lnk. Usual way for copying and renaming within one step.

Please try it by yourself. Create a key in the Registry. Like HKCU\Software\Test="%SystemRoot%\Notepad.exe". Read it with Kix and try to find that file.

Fabian

[ 26 October 2001: Message edited by: Fabian Koehlmann ]