Thanks for that, however I think I misled slightly, as I don't want teh sharename necessarily to be the the username.

Ie there will be people sharing that directory who have different usernames e.g.:-

?@USERID

IF @USERID = "Aperson"
shell "net use q: \\Server\Share$\Folder"

endif

IF @USERID = "Aperson2"
shell "net use q: \\Server\Share$\Folder"

endif

So It wouldn't be a case of having the userid variable at the end of the share!

sorry for any confusion