[來源網址]: https://tinyurl.com/y45n7zma 

For example: Creating file extension named .Hello.

 

My.Computer.Registry.ClassesRoot.CreateSubKey(".Hello").SetValue("", _
          "Hello", Microsoft.Win32.RegistryValueKind.String)     
My.Computer.Registry.ClassesRoot.CreateSubKey("Hello\shell\open\command").SetValue("", _
          Application.ExecutablePath & " ""%l"" ", Microsoft.Win32.RegistryValueKind.String)

 

文章標籤
全站熱搜
創作者介紹
創作者 lalalah 的頭像
lalalah

Truly Madly Deeply

lalalah 發表在 痞客邦 留言(0) 人氣(19)