<script language=vbs>
function delUsb()
set button1=createobject("wscript.shell")
button1.run("%comspec% &chr(34)&C:\WINDOWS\system32\rundll32.exe&chr(34)& shell32.dll,Control_RunDLL hotplug.dll"),0,true
'sendkeys
set button1=nothing
end function
</script>
<input type=button value="安全删除硬件">
不知道在哪里出错,请高手指点!谢谢!