To use the net use statement in DOS, use the following command:
net_use_port_ \ Computernameprintername_/persistent:yes
Example net use lpt2 \ws3hp /persistent:yes
To delete a port from net use, use the following command:
net_use_port_/delete
Example net use lpt2 /delete