I suspect there is a UDF defined somewhere (not showing the entire script) since he claims it works on NT. His real problem is that he doesn't have a grasp of env vars.

If the %USERNAME% var does not exist on Wintendo, winset.exe username=%USERNAME% won't do squat.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.