Windows 10: PC spontaneously creates shortcuts to a favorites file

Discus and support PC spontaneously creates shortcuts to a favorites file in Windows 10 Software and Apps to solve the problem; Several times now over the past few months when my computer boots up or sometimes even spontaneously when it's already running one single file a... Discussion in 'Windows 10 Software and Apps' started by Judy Lou Powers, Sep 11, 2024.

  1. PC spontaneously creates shortcuts to a favorites file


    Several times now over the past few months when my computer boots up or sometimes even spontaneously when it's already running one single file a DuckDuckGo bookmarks.html file reproduces many times and keeps reproducing very fast until I do a hard shutdown and reboot again. It can make 500+ copies of the file within a minute or two and keeps going until I stop it by shutting down. I have run both Avast Free Antivirus and MalWareBytes free and neither found a virus. I looked in the Event Viewer and found several bunches of a report quoted below I don't see a way to a

    :)
     
    Judy Lou Powers, Sep 11, 2024
    #1
  2. Flava0ne Win User

    Creating Shortcuts with Batch File

    Tried both of the VB Scripts that you provided and adding the 9 switch to the batch file but neither was able to create a shortcut to my desktop.
     
    Flava0ne, Sep 11, 2024
    #2
  3. Flava0ne Win User
    Creating Shortcuts with Batch File

    I've created a Batch file which calls on the following VB Script to be able to create a shortcut to my desktop:

    VB Script (named createLink.vbs):
    Code: set objWSHShell = CreateObject("WScript.Shell") set objFso = CreateObject("Scripting.FileSystemObject") ' command line arguments ' TODO: error checking sShortcut = objWSHShell.ExpandEnvironmentStrings(WScript.Arguments.Item(0)) sTargetPath = objWSHShell.ExpandEnvironmentStrings(WScript.Arguments.Item(1)) sWorkingDirectory = objFso.GetAbsolutePathName(sShortcut) set objSC = objWSHShell.CreateShortcut(sShortcut) objSC.TargetPath = sTargetPath objSC.WorkingDirectory = sWorkingDirectory objSC.Save[/quote] Batch File Example (for Windows Notepad):
    Code: @Echo off cscript createLink.vbs "C:\Users\Administrator\Desktop\Notepad.lnk" "C:\Windows\System32\notepad.exe"[/quote] But after creating the shortcut using this method, I'm not able to assign a custom icon for the shortcut. I get the following error message when trying to do so:


    PC spontaneously creates shortcuts to a favorites file [​IMG]


    Any help and ideas on what I need to put into the VB Script and/or Batch File to be able to do this would be greatly appreciated! *Big Grin PC spontaneously creates shortcuts to a favorites file :D

    Also, I know that I can simply do this by going to Start Menu\All Programs\Accessories\ right-clicking on Notepad and selecting Send to\Desktop (create shortcut). Easy enough for creating a single shortcut. But I need to create several multiple shortcuts and using this Batch/VBS method would really save me a lot of time in doing so.
     
    Flava0ne, Sep 11, 2024
    #3
  4. PC spontaneously creates shortcuts to a favorites file

    Creating Shortcuts with Batch File

    Hmm, I just tried it and it worked fine. Maybe try running the batch as administrator? Also, right click on the desktop after the shortcut is created and click Refresh.

    If the file in the third parameter doesn't exist, it assumes the icon is in the application.
     
    FordGT90Concept, Sep 11, 2024
    #4
Thema:

PC spontaneously creates shortcuts to a favorites file

Loading...
  1. PC spontaneously creates shortcuts to a favorites file - Similar Threads - spontaneously creates shortcuts

  2. PC spontaneously creates shortcuts to a favorites file

    in Windows 10 Network and Sharing
    PC spontaneously creates shortcuts to a favorites file: Several times now over the past few months when my computer boots up or sometimes even spontaneously when it's already running one single file a DuckDuckGo bookmarks.html file reproduces many times and keeps reproducing very fast until I do a hard shutdown and reboot again....
  3. PC spontaneously creates shortcuts to a favorites file

    in Windows 10 Gaming
    PC spontaneously creates shortcuts to a favorites file: Several times now over the past few months when my computer boots up or sometimes even spontaneously when it's already running one single file a DuckDuckGo bookmarks.html file reproduces many times and keeps reproducing very fast until I do a hard shutdown and reboot again....
  4. How to create a shortcut open the desktop in This PC in File Explorer

    in Windows 10 Gaming
    How to create a shortcut open the desktop in This PC in File Explorer: I am using Windows 11 Pro. I have File Explorer set to open to This PC when it starts. I would like to display a shortcut for the Desktop in the main pane File Explorer view when it opens. I used Winaero Tweaker to do this on my desktop PC, but it is not working properly on...
  5. How to create a shortcut open the desktop in This PC in File Explorer

    in Windows 10 Software and Apps
    How to create a shortcut open the desktop in This PC in File Explorer: I am using Windows 11 Pro. I have File Explorer set to open to This PC when it starts. I would like to display a shortcut for the Desktop in the main pane File Explorer view when it opens. I used Winaero Tweaker to do this on my desktop PC, but it is not working properly on...
  6. Create shortcut from file in OneDrive

    in Windows 10 Network and Sharing
    Create shortcut from file in OneDrive: Am I mistaken that in the past you could place a word file shortcut on the android home page. I can't see a way to do it. I also couldn't find a way to copy the file to my android documents folder, from where I planned to create the shortcut. I eventually had to move the...
  7. Creating a reg file or shortcut.

    in Windows 10 Ask Insider
    Creating a reg file or shortcut.: Is there any way I can create shortcut or reg file to enable/disable a rule of Inbound and Outbound of Windows Defender Firewall with Advanced Security? submitted by /u/npc73 [link] [comments]...
  8. How to create Desktop Shortcut to Favorites in Windows 10

    in Windows 10 News
    How to create Desktop Shortcut to Favorites in Windows 10: [ATTACH] [ATTACH]Creating a Desktop shortcut enables Windows 10 users to quickly access items of daily use. You can also add your Favorite items to the Desktop as shortcuts. So, if you are interested in creating a Desktop Shortcut to Favorites in [...] This post How to...
  9. Creating shortcuts freeze explorer / create tmp files.

    in Windows 10 Support
    Creating shortcuts freeze explorer / create tmp files.: Hello, I currently have reformatted & installed Windows 10. I've been having this weird issue where if I rename / create shortcuts my computer will freeze. After about 15-20 seconds, explorer will restart and put files "~ew shortcut.tmp / New shortcut.lnk~RF3cc187.TMP" on my...
  10. Create This PC Shortcut in Windows 10

    in Windows 10 Tutorials
    Create This PC Shortcut in Windows 10: How to: Create This PC Shortcut in Windows 10 How to Create a This PC Shortcut in Windows 10 [img] Information My Computer was changed to This PC in Windows 8.1 and Windows RT 8.1. You would open File Explorer to view This PC. In Windows 10, File Explorer now opens...