Question

  • Creator
    Topic
  • #2340992

    How to have two desktop shortcuts deleted automatically on startup

    Locked

    by jacob.telcs ·

    Tags: 

    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.

All Answers

  • Author
    Replies
    • #2448290

      Clarifications 1458117356

      by jacob.telcs ·

      In reply to How to have two desktop shortcuts deleted automatically on startup

      Clarification dummy post @ 1458117356

    • #2448279

      open system configuration

      by jr19910101 ·

      In reply to How to have two desktop shortcuts deleted automatically on startup

      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.

      • #2448278

        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.

    • #2423682

      Group policy config change

      by paulhelp21 ·

      In reply to How to have two desktop shortcuts deleted automatically on startup

      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.

    • #2780206

      batch file

      by beermonster ·

      In reply to How to have two desktop shortcuts deleted automatically on startup

      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

Viewing 3 reply threads