I've searched high and low and haven't found a solution for the following problem;
I'm trying to see if there is a way to 'detect' which optical drive is right-clicked in Windows for use with makemkvcon...
Typically in batch, Windows uses %1 or %~dpnx1 for the "first" file/folder/drive that is dragged onto a batch file, or in some cases right-clicked (when combined with a batch being launched from RC context menu)
I am aware of the
Code: Select all
makemkvcon -r --cache=1 info disc:9999
Even when combined with a FOR loop to grab the standard output of the command, it's still not going to be able to detect which optical drive is %1 (%~dpn1)
Using the makemkv disc numbering system (0-9999) will not be able to identify the actual disc that is either dragged or right-clicked
Essentially I am using this command;
Code: Select all
makemkvcon.exe mkv disc:0 all c:\folder
Such as;
Code: Select all
makemkvcon.exe mkv disc:%variable% all c:\folder
I have 3 optical drives in my PC. If I wanted to right-click the second drive (disc:1) and use makemkvcon to rip the disc, there is currently no way of MakeMKV knowing that I've selected the second drive.
Because I've hard-coded disc:0 into the script, even with selecting the second drive (disc:1), it will obviously still try and convert the first disc (disc:0)
I realise it's a long shot, but I thought someone here might have come across this caveat before and not shared their magic with the world
The only other alternative I have thought of is getting the user to choose which drive they have selected with a prompt and inject their choice into the %variable%
Thanks in advance folks
-Jenkins