Batch file for mapped drives

After some trial and error I have a startup batch file with a delay to map my network drives

For folders WITH NO spaces in the name use this format

net use m:\Server01\myfolder /USER:mynetwork\Administrator Mypassword /persistent:yes

For folders WITH spaces in the name use this format (notes the quotation marks " " either side of the path with spaces in the folder name


net use "m:\Server01\my folder" /USER:mynetwork\Administrator Mypassword /persistent:yes