@echo off  
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
cd /d "%~dp0" #进入目录
set pa=%cd% #设置
md c:\Release #删除
xcopy /y "%~dp0Release" C:\Release /s /e #拷贝文件regsvr32 c:\\Release\COM_USB_HID_X86.dll #进行注册
#拷贝文件
@echo off
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
cd /d "%~dp0"
set "pabuf=%~dp0\upgrade.bin"
set "tobuf=G:\upgrade.bin"
copy /y "%pabuf%" "%tobuf%"
set /p=复制完成!<nul @ pause