Hello and Welcome to the board.

Please look in the UDF Forum for drive mapping UDFs that do that for you.