Windows 10: Creating a reg file or shortcut.

Discus and support Creating a reg file or shortcut. in Windows 10 Ask Insider to solve the problem; 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... Discussion in 'Windows 10 Ask Insider' started by /u/npc73, May 13, 2020.

  1. /u/npc73 Win User

    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]

    :)
     
    /u/npc73, May 13, 2020
    #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, May 13, 2020
    #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:


    Creating a reg file or shortcut. 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 Creating a reg file or shortcut. :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 13, 2020
    #3
  4. Creating a reg file or shortcut.

    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, May 13, 2020
    #4
Thema:

Creating a reg file or shortcut.

Loading...
  1. Creating a reg file or shortcut. - Similar Threads - Creating reg file

  2. How to create a .reg file?

    in Windows 10 Gaming
    How to create a .reg file?: I wanted to know how to create a .reg file in windows 10? https://answers.microsoft.com/en-us/windows/forum/all/how-to-create-a-reg-file/2b6be1e5-3228-47ad-ba44-758e0a97dfc9
  3. How to create a .reg file?

    in Windows 10 Software and Apps
    How to create a .reg file?: I wanted to know how to create a .reg file in windows 10? https://answers.microsoft.com/en-us/windows/forum/all/how-to-create-a-reg-file/2b6be1e5-3228-47ad-ba44-758e0a97dfc9
  4. How to create a .reg file?

    in Windows 10 Network and Sharing
    How to create a .reg file?: I wanted to know how to create a .reg file in windows 10? https://answers.microsoft.com/en-us/windows/forum/all/how-to-create-a-reg-file/2b6be1e5-3228-47ad-ba44-758e0a97dfc9
  5. 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...
  6. Reg file Please

    in Windows 10 Customization
    Reg file Please: Hello Had a look round the net to see if I can find a reg file to remove digital signatures tab in Windows 10 1809 x64 context menu properties for .exe files.Plenty of other edits but none for what I need. Does anyone have such a reg file or can point me to regedit to remove...
  7. Adapting .REG Files.

    in Windows 10 Customization
    Adapting .REG Files.: I came across these somewhere [sorry I can't remember where or I would credit the owner]. I know that Icon and Position are optional, but MUIVerb and SubCommands are compulsory. Code: [HKEY_CLASSES_ROOT\DesktopBackground\Shell\AdvancedStartupOptions]" MUIVerb"="Advanced...
  8. Adapting .REG Files.

    in Windows 10 Software and Apps
    Adapting .REG Files.: I came across these somewhere [sorry I can't remember where or I would credit the owner]. I know that Icon and Position are optional, but MUIVerb and SubCommands are compulsory. Code: [HKEY_CLASSES_ROOT\DesktopBackground\Shell\AdvancedStartupOptions]" MUIVerb"="Advanced...
  9. .reg file error

    in Windows 10 BSOD Crashes and Debugging
    .reg file error: Hi,I tried to change windows 10 font style by running a reg file- Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts] "Segoe UI (TrueType)"="" "Segoe UI Bold (TrueType)"="" "Segoe UI Bold Italic (TrueType)"="" "Segoe...
  10. 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...