|
Opt("MustDeclareVars",1)
_Main()
Exit
Func _Main()
Local $DriversDir= EnvGet("SystemDrive") & "\Drivers"
Local $CameraDir = $DriversDir & "\Camera"
Local $TemDir = EnvGet("WinDir") & "\Temp"
If FileExists($DriversDir)Then
Local $r= MsgBox(3+32,"3-3",_
"发现"&$DriversDir&",是否全部删除?"_
&@CRLF&@CRLF&_
"单击"是",全部删除;"&@CRLF&_
"单击"否",保留摄像头驱动;"&@CRLF&_
"单击"取消",不删除")
If $r = 6 Then
DirRemove($DriversDir,1)
MsgBox(0+64,"3-3","全部驱动已删除")
ElseIf $f =7 Then
DirMove($DriversDir&"\Camera",_
$TempDir & "\_Camera",1)
DirRemove($DriversDir,1)\
DirCreate($DriversDir)
DirMove($TemDir&"\_Camera",_
$DriversDir&"\Camera",1)
MsgBox(0+64,"3-3",_
"除摄像头以外的驱动已删除!")
ElseIf $r =2 Then
MsgBox(0+64,"3+3","全部驱动已保留")
EndIf
Else
MsgBox(0,"3-3","未发现"&$DriversDir&"!")
EndIf
EndFunc ;==>_Main |
|