Good luck!
When posting something like that you’d probably want to put “~~~” before and after it.
Then it will show up like this which allows for really long lines that can be scrolled instead of wrapping which makes stuff like scripts hard to read. :-)
Hopefully that makes sense...
I don’t have the specifics with me, but variations of the following commands might help determining drive letter with a batch file:
wmic diskdrive get name,size,model,SerialNumber
Get-CimInstance Win32_DiskDrive | Select-Object Model,SerialNumber
(PowerShell)
Get-PhysicalDisk | Select-Object FriendlyName,SerialNumber
(PowerShell)