Creating a batch file to remove shortcuts from the startup menu

Scotty83

Honorable
Apr 29, 2013
5
0
10,510
Hi Everyone,

Looking for a little help with some coding.

What I'm trying to do is to remove a shortcut from the startup menu on multiple computers. Shortcut is located under "Documents and settings\All Users\start menu\programs\startup"

I have tried many different types of coding (mostly to make sure I had the right name of the shortcut), but none seem to remove the shortcut.

coding I've tried is

del/q"\\computername\C$\documentsandsettings\allusers\startmenu\programs\startup\shortcutname.lnk"

del/q"\\computername\C$\documents and settings\all users\start menu\programs\startup\shortcutname.lnk"

Systems are all Windows XP SP3

Any help would be greatly appreciated.
 

kenaniah7037

Honorable
Sep 17, 2013
54
0
10,660
Found a link that might help.....I use batches mainly for defrag and temp removal, never tried it yet for shortcuts.
Hope this helps, if it works I might just use it myself!

http://www.techrepublic.com/forums/questions/batch-file-for-deleting-shortcuts/