Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 17th, 2003, 12:55 PM
linh linh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 245 linh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 27 sec
Reputation Power: 6
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

Reply With Quote
  #2  
Old November 18th, 2003, 05:10 AM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
U can delete the shortcut file on the desktop and the file or dirctory in program menu directory!..

Reply With Quote
  #3  
Old November 18th, 2003, 09:01 AM
linh linh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 245 linh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 27 sec
Reputation Power: 6
reply

Hi cleverpig. I meant how to delete them using Visual Basic.
Thank you for your help

Reply With Quote
  #4  
Old November 18th, 2003, 09:34 AM
Watever Watever is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Montreal, Canada
Posts: 486 Watever User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 20 sec
Reputation Power: 6
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.

Reply With Quote
  #5  
Old November 18th, 2003, 09:48 PM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
U can use filesystem object to finish it!!To see tutorial on msdn:http://msdn.microsoft.com/library/d...ystemobject.asp

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > How to delete the shortcut to a desktop and to a Program Menu Group.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT