The best option I can find is:
1) open a shell and run mountvol and find the GUID
\\?\Volume{1be3da43-6602-11e0-b9e6-f11e1c50f5b5}\ F:\
2) run the mountvol / p [GUID] command in the script
Dim eject Set eject = WScript.CreateObject("WScript.Shell") eject.Run "mountvol \\?\Volume{1be3da43-6602-11e0-b9e6-f11e1c50f5b5}\ /p" Set eject = Nothing
The only problem with this method is that administrator access is required to delete the drive letter. If it is called by the user, it will disconnect the drive, in which case it will leave F: phantom. It is safe to remove the USB drive, or you can remove the phantom to remove it.
Pedro source share