@echo off echo "Stopping the given device..." SET DEST=%1 unlocker /S %DEST% sdparm --command=sync %DEST% sdparm --command=stop %DEST%