Question

Locked

How to have two desktop shortcuts deleted automatically on startup

By jacob.telcs ·
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.

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

open system configuration

by jr19910101 In reply to How to have two desktop s ...

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.

Collapse -

thanks

by jacob.telcs In reply to open system configuration

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.

Collapse -

Group policy config change

by pdr5407 In reply to How to have two desktop s ...

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.

Collapse -

batch file

by BeerMonster In reply to How to have two desktop s ...

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

Back to Windows Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums