the active part in the above if the /d to remove any current mapping... can't map the letter if it is in use.

1>Nul 2>&1 is the magic redirection switches to suppress output from the command
_________________________
How to ask questions the smart way <-----------> Before you ask