<p>What's the best way to copy a file from a network share to the local file system using a Windows batch file?  Normally, I would use "net use *" but using this approach how can I get the drive letter?</p>

[{'answer_id': 46640, 'author': 'Mark Biek', 'author_id': 305, 'author_profile': 'https://Stackoverflow.com/users/305', 'pm_score': 5, 'selected': True, 'text': '<p>Can you just use the full UNC path to the file?</p>\n\n<pre><code>copy \\\\myserver\\myshare\\myfolder\\myfile.txt c:\\myfiles\n</code></pre>\n'}, {'answer_id': 46646, 'author': 'Joel Coehoorn', 'author_id': 3043, 'author_profile': 'https://Stackoverflow.com/users/3043', 'pm_score': 1, 'selected': False, 'text': '<p>You can specify the drive letter for <code>net use</code>.  Put this in the command prompt for more info:  </p>\n\n<pre><code>net use /?\n</code></pre>\n'}, {'answer_id': 59326025, 'author': 'Wasif', 'author_id': 12269857, 'author_profile': 'https://Stackoverflow.com/users/12269857', 'pm_score': 0, 'selected': False, 'text': '<p>You can also use <code>xcopy</code> and <code>robocopy</code>:</p>\n\n<pre><code>xcopy "\\\\server\\share\\path" "destination"\n</code></pre>\n\n<pre><code>robocopy "\\\\server\\share\\path" "destination"\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/46636', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4778/']