您的位置:首页 > 运维架构 > Shell

修复快速启动不能显示或没有「显示桌面」项的问题

2011-05-07 12:57 661 查看
Dim HomePath As String

'WIN2K之后的系统
If GetOStype().blnW2K Then
HomePath = Environ("HOMEDRIVE") & Environ("HOMEPATH")
Else
HomePath = Environ("windir") 'Win9x
End If

'如果没有Quick Launch目录,则先创建
If Dir$(HomePath & "/Application Data/Microsoft/Internet Explorer/Quick Launch", vbDirectory) = "" Then

'如果目录不存生,则先创建
If Dir$(HomePath & "/Application Data/Microsoft/Internet Explorer", vbDirectory) = "" Then
MkDir HomePath & "/Application Data/Microsoft/Internet Explorer"
End If
MkDir HomePath & "/Application Data/Microsoft/Internet Explorer/Quick Launch"

End If

'如果没有「显示桌面」,则生成
If Dir$(HomePath & "/Application Data/Microsoft/Internet Explorer/Quick Launch/显示桌面.scf") = "" Then
Open HomePath & "/Application Data/Microsoft/Internet Explorer/Quick Launch/显示桌面.scf" For Append As #1
Print #1, "[Shell]"
Print #1, "Command = 2"
Print #1, "IconFile=explorer.exe,3"
Print #1, "[Taskbar]"
Print #1, "Command = ToggleDesktop"
Close #1
End If
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  command string shell
相关文章推荐