How do I open the Devices and printers
tab in the control panel
with batch
or from the command prompt
?
Take a look at the CLSID Key (GUID) listing.
With shell, you can execute code to open the control panel to the desired location.
explorer shell:::{CLSID key number below}
In this case, your code would be:
explorer shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}
Alternatively:
Open Control Panel -> Hardware and Sound, left click and drag Devices and Printers
to the desktop, this will create a new shortcut to that location.
With the shortcut, you can run it within a command prompt or a shell alternative.
Both methods do the exact thing, opening the lnk in notepad reveals the location of:
{ 2 6 E E 0 6 6 8 - A 0 0 A - 4 4 D 7 - 9 3 7 1 - B E B 0 6 4 C 9 8 6 8 3 } \ 2 \ : : { A 8 A 9 1 A 6 6 - 3 A 7 D - 4 4 2 4 - 8 D 2 4 - 0 4 E 1 8 0 6 9 5 C 7 A }