There are cleaner ways to write your script without using GOSUB.
quote:

md "\\myt-1001\home\@userid"

has nothign to do with login scritps and therefore should not be there.

Use build-in KiXtart macros wherever possible instead of environment variables, see %TYPE%.

Make use of the UDFs in the UDF library to create easy to maintain scripts.

Store drive/printer mapping info in a .INI file.

Read the FAQs!
_________________________
There are two types of vessels, submarines and targets.