wmic logicaldisk where DeviceID="Y:" [download]
In reply to Re^7: Error with GetDRIVE() when using a mapped drive by soonix in thread Error with GetDRIVE() when using a mapped drive by vanz