|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to delete the shortcut to a desktop and to a Program Menu Group.
The code below, will add a shortcut to a desktop and to a Program Menu Group. How would I delete the shortcut to a desktop and to a Program Menu Group.
Delete a shortcut from a desktop and from Program Menu Group Sub Create_Shortcut_On_The_Desktop() Dim lReturn As Long File_Name_And_Location = Directory_Box & "A_VPN.exe" 'Add to Desktop lReturn = fCreateShellLink("..\..\Desktop", "A_VPN", File_Name_And_Location, "") 'Add to Program Menu Group lReturn = fCreateShellLink("", "A_VPN", File_Name_And_Location, "") lReturn = fCreateShellLink("\Startup", "Shortcut to Web_Office_VPN", "c:\A_VPN\Web_Office_VPN.exe", "") End Sub |
|
#2
|
|||
|
|||
|
U can delete the shortcut file on the desktop and the file or dirctory in program menu directory!..
|
|
#3
|
|||
|
|||
|
reply
Hi cleverpig. I meant how to delete them using Visual Basic.
Thank you for your help |
|
#4
|
|||
|
|||
|
you delete it the same way you would delete any others files. there is many way to do it. but I have a blank this morning, have been a long time since I used that, sorry
! might do a little search on how deleting file and you will find it easily I believe. |
|
#5
|
|||
|
|||
|
U can use filesystem object to finish it!!To see tutorial on msdn:http://msdn.microsoft.com/library/d...ystemobject.asp
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > How to delete the shortcut to a desktop and to a Program Menu Group. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|