Last active
August 29, 2015 14:23
-
-
Save alpsayin/5b5bc699ae15774044f3 to your computer and use it in GitHub Desktop.
Nircmd Auto-Eject All Cdroms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Alp Sayin | |
REM 17/06/2015 | |
set disks="wmic logicaldisk | findstr "CD-ROM Disc"" | |
for /F "tokens=2" %%a in (' %disks% ') do nircmd.exe cdrom open %%a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment