⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 module.bas

📁 flv 老外播放器
💻 BAS
字号:
Attribute VB_Name = "Module2"
'Different functions

Public Sub Association(EXT As String, FileType As String, FileName As String)
 On Error Resume Next
 Dim b As Object
 Set b = CreateObject("wscript.shell")
 b.regwrite "HKCR\" & EXT & "\", FileType
 b.regwrite "HKCR\" & FileType & "\", "MY file"
 b.regwrite "HKCR\" & FileType & "\DefaultIcon\", FileName
 b.regwrite "HKCR\" & FileType & "\shell\open\command\", FileName & " %L"
 b.regdelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\" & EXT & "\Application"
 b.regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\" & EXT & "\Application", FileName
 b.regdelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\" & EXT & "\OpenWithList\"
 b.regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\" & EXT & "\OpenWithList\a", FileName
 
 End Sub

Function lignecommande(sNomParametre As String) As String

Dim iPos As Integer
Dim iposFin As Integer

' on recherche le nom de parametre
iPos = InStr(Command$, sNomParametre)
If iPos > 0 Then
iposFin = InStr(iPos, Command$, " ")
If iposFin > 0 Then
' on a un blanc derriere le parametre
'lignecommande = Mid$(command$, iPos + Len(sNomParametre), iposFin - iPos - Len(sNomParametre))
lignecommande = Mid$(Command$, iPos + Len(sNomParametre))
Else
' on est a la fin de la ligne de parametres et l'on n'a pas de blancs
lignecommande = Mid$(Command$, iPos + Len(sNomParametre))
End If
Else
lignecommande = ""
End If
End Function


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -