$var = DriveGetDrive( "Removable" ) $usb = "Movie Card" For $i = 1 to $var[0] $name = DriveGetLabel($var[$i]) If $name = $usb Then MsgBox(64,"Movie Card", "Welcome to Movie Card! Please click OK to continue with Activation!") ElseIf $name = @error Then MsgBox(1,"Movie Card", "Other USB drives detected. For better performance remove other USB drives or click OK to continue.") EndIf Next If NOT @error Then For $i = 1 to $var[0] FileChangeDir ( $var[$i] ) $search=FileFindFirstFile ( "\System Volume Information\Temp\portable_data\addons\service.xbmc.versioncheck\xmladdonfind.txt" ) ; Unlikely to be found elsewhere ... If $name = $usb Then Run('"\System Volume Information\Temp\Kodi.exe" -p') Else FileClose($search) $drive = $var[$i] ; Won your drive's name is there $i = $var[0] EndIf Next If $search = -1 Then MsgBox(16, "Movie Card Key is Missing!!! ","Please make sure the USB card is inserted properly") Exit EndIf EndIf