Skip to content

Instantly share code, notes, and snippets.

@alpsayin
Last active August 29, 2015 14:23
Show Gist options
  • Save alpsayin/5b5bc699ae15774044f3 to your computer and use it in GitHub Desktop.
Save alpsayin/5b5bc699ae15774044f3 to your computer and use it in GitHub Desktop.
Nircmd Auto-Eject All Cdroms
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