Question Locked

How to have two desktop shortcuts deleted automatically on startup

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have two shortcuts on my desktop that I want to delete on startup if they are present. It is my company network that keeps on adding these two shortcuts but I have no use for them. I dislike the clutter.

How do I write a program or batch file that will delete these two shortcuts automatically on startup? My computer is running Windows 7.

Thank you in advance.

5 replies

by jr19910101

Click the Start button on the bottom left of the screen. Type in "msconfig" and hit Enter key. A new window will pop up, click the "Start up" menu and disable the application you don't want them to run automatically.

by jacob.telcs

Thank you for the suggestion. It did not work though. The shortcuts appear on every reboot as soon as I connect to the company network. What I think wourld work is to write a script that I can add to be run on startup that delete the shortcuts.

by paulhelp21

This could be a group policy that is loading the shortcuts when you reboot the computer. In this case you would have to reach out to the admin and request that this policy be disabled for your logon profile.

by beermonster

Drop a batch file into your startup folder, anything in there runs every time you log on

C:\Users\yourusername\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

create a batch file (that's just a txt file with the extension renamed from txt to cmd), add the two lines below (edit with correct user and file names) and add it to the startup folder

del C:\Users\yourusername\Desktop\firstshortcutname.lnk
del C:\Users\yourusername\Desktop\secondshortcutname.lnk

This discussion is closed to new replies.