SHARE
TWEET

Eject Flash v2

Vanfear Jul 13th, 2017 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. mode con cols=52 lines=5
  3. color 0f
  4. title Eject Flash v2
  5. echo.
  6. echo.
  7. echo.                   Please wait...
  8. tasklist.exe | findstr.exe /l /i /c:"# Eject Flash.exe" > nul
  9. if not %errorlevel%==0 (del /q EjectFlash.exe MCISend.exe ExitCode0.wav ExitCode2.wav EjectFlash.bat) & (exit 0)
  10. for /f "delims=" %%x in ('wmic.exe process where "name='# Eject Flash.exe'" get executablepath ^| findstr.exe /l /i /c:"# Eject Flash.exe"') do (
  11. set d=%%~dx) & (taskkill.exe /f /im "# Eject Flash.exe" > nul) && call :v
  12. rmdir /s /q "%appdata%\EjectFlash"
  13. del /q EjectFlash.exe MCISend.exe ExitCode0.wav ExitCode2.wav EjectFlash.bat & exit 0
  14. :v
  15. EjectFlash.exe stop -d %d% > nul 2> nul
  16. if %errorlevel%==0 (
  17. cls
  18. color 2f
  19. echo.
  20. echo.
  21. echo.                   Disk Eject...
  22. MCISend.exe play ExitCode0.wav wait) else (
  23. cls
  24. color 4f
  25. echo.
  26. echo.
  27. echo.                   Eject Failed
  28. MCISend.exe play ExitCode2.wav wait)
  29.  
  30. https://toolslib.net/downloads/viewdownload/91-ejectflash/
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top