用VB设计一个程序?

来源:百度知道 编辑:UC知道 时间:2024/05/27 18:27:40
用VB设计一个程序,可以单机不同按钮打开不同文件或网站,好像用Shell。
不用也行。
告诉我方法就行!!!
我要打开我的电脑;控制面板;百度首页;迅雷;C盘。
谢谢各位肯帮忙的大侠了!
最好可以打开一个文件夹。

好了 你说的5项功能。。代码复制可以直接用。
'窗体代码
Private Sub Command1_Click()
Shell "Explorer ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}", vbNormalFocus
End Sub

Private Sub Command2_Click()
Shell "rundll32.exe shell32.dll,Control_RunDLL", vbNormalFocus
End Sub

Private Sub Command3_Click()
Shell "explorer.exe http://www.baidu.com/"
End Sub

Private Sub Command4_Click()
Set WshShell = CreateObject("Wscript.shell")
Key = "HKEY_LOCAL_MACHINE\SOFTWARE\Thunder Network\ThunderOem\thunder_backwnd\"
oWner = WshShell.regread(Key & "Path")
Shell oWner, vbNormalFocus
End Sub

Private Sub Command5_Click()
Shell "EXPLORER.EXE c:\", vbNormalFocus
End Sub
-------------------------------------------------------------------