troubleshooting Question

VBScript or batch process for deleting a shortcut from the Windows 7 Public\Desktop folder

Avatar of Accidental Hyper-V Administrator
Accidental Hyper-V AdministratorFlag for United States of America asked on
Microsoft DOSVB ScriptWindows 7
1 Comment1 Solution1905 ViewsLast Modified:
This is kind of a tuff nut.

I have an application that creates a Desktop shortcut on our pcs.
I have been asked to remove it, via some sort of script.
VBScript or Batch.

It's not an issue (to delete the shortcut) with the XP desktops.

But as for Windows 7 and Vista, well, I can't seem to figure out how to access the shortcut inside of the Public\Desktop folder.
Either by VBScript or with a batch file.
So that I might delete it.
(Although I can delete it manually.)

If I start a command prompt.
Then use DOS commands, I can't even "see" the public desktop folder.
(Although I CAN see it in Explorer).

Has anyone been able to delete a short from the public\desktop folder via a script ?

I would be very interested in hearing how you did it.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros