) to let Windows automatically assign the next available letter. net use * \\ServerName\SharedFolder 4. Advanced Batch Scripting for "Reliability"
To delete all:
If the share requires a username and password, don't type them directly into the command where they can be seen in your history. Use the flag followed by Stack Overflow