Fixed the problem where the "show desktop" item cannot be displayed or not displayed during quick start.

Source: Internet
Author: User

Dim HomePath As String

'Win2k later Systems
If GetOStype (). blnW2K Then
HomePath = Environ ("HOMEDRIVE") & Environ ("HOMEPATH ")
Else
HomePath = Environ ("windir") 'win9x
End If

'If there is no Quick Launch directory, create
If Dir $ (HomePath & "/Application Data/Microsoft/Internet Explorer/Quick Launch", vbDirectory) = "" Then

'If the directory is not saved, create
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 no desktop is displayed, generate
If Dir $ (HomePath & "/Application Data/Microsoft/Internet Explorer/Quick Launch/display desktop. scf") = "" Then
Open HomePath & "/Application Data/Microsoft/Internet Explorer/Quick Launch/display desktop. scf" For Append As #1
Print #1, "[Shell]"
Print #1, "Command = 2"
Print #1, "iconfilepolicer.exe, 3"
Print #1, "[Taskbar]"
Print #1, "Command = ToggleDesktop"
Close #1
End if

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.