Windows 10: How to stop Windows 10 from creating shortcut for every single file

Discus and support How to stop Windows 10 from creating shortcut for every single file in Windows 10 Network and Sharing to solve the problem; Does anyone has the solution to disable the file shortcut autocreation? Thank you.... Discussion in 'Windows 10 Network and Sharing' started by LynnCLL, May 23, 2020.

  1. LynnCLL Win User

    How to stop Windows 10 from creating shortcut for every single file


    Does anyone has the solution to disable the file shortcut autocreation? Thank you.

    :)
     
    LynnCLL, May 23, 2020
    #1
  2. 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:


    How to stop Windows 10 from creating shortcut for every single file Error503.jpg


    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 How to stop Windows 10 from creating shortcut for every single 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, May 23, 2020
    #2
  3. 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, May 23, 2020
    #3
  4. Flava0ne Win User

    How to stop Windows 10 from creating shortcut for every single file

    Creating Shortcuts with Batch File

    So basically my Batch File will now look like this:

    Code: @Echo off CreateShortcut.exe "C:\Users\Administrator\Desktop\Notepad.lnk" "C:\Windows\System32\notepad.exe"[/quote] Thanks man! *Big Grin How to stop Windows 10 from creating shortcut for every single file :D This does exactly what I want done and I'm able to customize the icon for the shortcut without problems. But I'm not quite sure how to use the [icon file] portion you mentioned that it supports. I tried the following Batch File:

    Code: @Echo off CreateShortcut.exe "C:\Users\Administrator\Desktop\Notepad.lnk" "C:\Windows\System32\notepad.exe" "C:\Users\Administrator\Pictures\Notepad.ico"[/quote] It created the shortcut but didn't change the icon.
     
    Flava0ne, May 23, 2020
    #4
Thema:

How to stop Windows 10 from creating shortcut for every single file

Loading...
  1. How to stop Windows 10 from creating shortcut for every single file - Similar Threads - stop creating shortcut

  2. How to backup a single file on windows 10?

    in Windows 10 Backup and Restore
    How to backup a single file on windows 10?: Hello I would like to know how to backup a single file, its a game save file, it does autosave every 10 min, but sometimes save file get corrupted, so i want to backup that save file as much as possible (every time it update or every few minutes, or at least every hour) So I...
  3. 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]...
  4. How do I create a shortcut to a file on the network?

    in Windows 10 Network and Sharing
    How do I create a shortcut to a file on the network?: I have some files (mainly spreadsheets) on the network and need to share some of those with managers I can share the link to the file by email quite easily, I can share the whole folder but dont want to. I Cant share a shortcut by email because Outlook removes it How do I...
  5. How to create a shortcut for File History on Windows 10

    in Windows 10 News
    How to create a shortcut for File History on Windows 10: [ATTACH] [ATTACH]File History is a useful feature in the Windows 10 operating system. This feature makes an automatic back up versions of important files on a computer to internal or external storage on a computer. These files can also be backed [...] This post How to create...
  6. How to stop Windows from creating hiberfil.sys

    in Windows 10 Performance & Maintenance
    How to stop Windows from creating hiberfil.sys: I tried deleting it from cmd prompt and also downloaded Unlocker for the sole purpose of getting rid of it. My laptop is always plugged in, why are you forcing it to switch off randomly when I'm away from my laptop? Windows 10 recently had to rest it. Did not have hibernation...
  7. Windows 10 1909 error on every install that want's to create a shortcut how to correct this?

    in Windows 10 Installation and Upgrade
    Windows 10 1909 error on every install that want's to create a shortcut how to correct this?: The title basically says it all I thought that the error was related to one program but it turns out that anything I try to install that install a shortcut receives the 1909 error most can carry one but some can't and they report having a fatal instal error and I have no clue...
  8. Create File History shortcut in Windows 10

    in Windows 10 Tutorials
    Create File History shortcut in Windows 10: How to: Create File History shortcut in Windows 10 How to Create File History shortcut in Windows 10 File History was first introduced in Windows 8, and has been improved in Windows 10. You can use File History to automatically back up versions of your files on a...
  9. How to create a reboot shortcut?

    in Windows 10 Performance & Maintenance
    How to create a reboot shortcut?: I found that one can shorten the steps of shutting down windows by creating a shortcut on the desktop. by using this command "%windir%\System32\shutdown.exe /s /t 0" The shutdown exe file can be found in the directory above. I thought I may be able to create a similar...
  10. Create a single file to protect yourself from the latest ransomware

    in Windows 10 News
    Create a single file to protect yourself from the latest ransomware: There's no cure for the latest ransomware attack, but a researcher has discovered a way to prevent infection through the creation of a single Windows file. As reported by Bleeping Computer, there is a way to prevent infection -- not cure, but protect from -- which takes...