Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


How To: Delete an Internet ShortCut

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,64721
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> How To: Delete an Internet ShortCut
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 How To: Delete an Internet ShortCut - 10/2/2008 2:55:58 AM   
  stephen.wolfe

 

Posts: 77
Score: 0
Joined: 8/9/2005
From: Tampa, FL
Status: online
Hi All!

    I need to delete an old Internet shortcut we have had out on our users desktop for a long, long time.

I assume I would use FSO, but what I'm not sure of how to address the short cut file name.

I'm looking in C:\Documents and Settings\All Users\Desktop in the detail mode and I don't see any extensions, but
I thought all shortcuts have extension .lnk.  Also, does the All User Desktop have a special folder name?

Oh, run more thing I went into view to make sure I was displaying extensions.

Any guidance will be gratefully received.

Thanks!

_____________________________

Steve
 
 
Post #: 1
 
 RE: How To: Delete an Internet ShortCut - 10/2/2008 3:11:13 AM   
  dm_4ever


Posts: 2670
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Something like this should show you the files on the desktop


      

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to stephen.wolfe)
 
 
Post #: 2
 
 RE: How To: Delete an Internet ShortCut - 10/2/2008 3:37:44 AM   
  stephen.wolfe

 

Posts: 77
Score: 0
Joined: 8/9/2005
From: Tampa, FL
Status: online
dm_4ever ,

    Thanks a million!!!!

    The code I had was this:


      

Except I didn't have the special folder name or extension, your code will come in handy, it will become a
subroutine.

I'll comment out the Wscript.Echo and incorporate the script snippet into my post logon script.

Next time you are in Tampa, give me a call and lunch is on me (PM for contact number)

The snake (my boss) was wanting this to happen this afternoon and now it will happen.

Thanks again!

_____________________________

Steve

(in reply to dm_4ever)
 
 
Post #: 3
 
 RE: How To: Delete an Internet ShortCut - 10/2/2008 5:08:23 AM   
  stephen.wolfe

 

Posts: 77
Score: 0
Joined: 8/9/2005
From: Tampa, FL
Status: online
Here is the final version.  Do you think I did overkill?


      

_____________________________

Steve

(in reply to dm_4ever)
 
 
Post #: 4
 
 RE: How To: Delete an Internet ShortCut - 10/2/2008 9:39:07 AM   
  dm_4ever


Posts: 2670
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
I'm glad you got it sorted out. 

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to stephen.wolfe)
 
 
Post #: 5
 
 RE: How To: Delete an Internet ShortCut - 10/2/2008 8:59:33 PM   
  stephen.wolfe

 

Posts: 77
Score: 0
Joined: 8/9/2005
From: Tampa, FL
Status: online
Me, too, and thank you again for the assist.


_____________________________

Steve

(in reply to dm_4ever)
 
 
Post #: 6
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> How To: Delete an Internet ShortCut Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts