I need to map a network drive with a batch file, but don\'t want to specify the drive letter.
The batch file is used as part of a deployment process; I call the batc
i use this to let NET pick a free drive letter, then use NET to find out what letter it assigned:
net use * \\server\share for /f "tokens=2" %%i in ('net use ^| find "\\server\share"') do set netdrive=%%i echo %netdrive% has been mapped