@echo off
echo var shell = new ActiveXObject("Shell.Application");>"%temp%\ej.js"
echo shell.NameSpace(17).ParseName("%cd:~0,-1%").InvokeVerb("Eject");>>"%temp%\ej.js"
echo WSH.Sleep(2000);>>"%temp%\ej.js"
cd /d %systemdrive%\
start "" /MIN cmd /c "wscript.exe //Nologo "%temp%\ej.js""
@if (0 == 1) @end
var shell = new ActiveXObject("Shell.Application");
shell.NameSpace(17).ParseName("G:").InvokeVerb("Eject");
WSH.Sleep(2000);