Hello Benjamin and welcome to the board.

Well I'm sure we can assist you, but it would have been much easier if all your user directories were named exactly as the userid is. Since the're not you now have to manipulate any code you use to match the pattern used.

1. What Server OS?
2. What network structure - NT4 or AD?
3. What version of KiXtart are you using?
4. What are the client desktop OS involved?

Please explain in detail what makes up the USERID and what makes up the HOME FOLDER structure.

Using SPLIT,InStr,SubStr etc with @FullName, @USERID will probably help you out. Please give us solid examples of the layout and answer the above questions and I'm sure we can quickly get you going in the right direction.