Windows 10: New .reg file but not blank

Discus and support New .reg file but not blank in Windows 10 Customization to solve the problem; Hey guys! It is a part of script after clean install to add bat,ps1,reg,vbs to new context menu REG ADD "HKCR\.ps1\ShellNew" /v "NullFile" /t REG_SZ... Discussion in 'Windows 10 Customization' started by Feuer, Mar 26, 2021.

  1. Feuer Win User

    New .reg file but not blank


    Hey guys!

    It is a part of script after clean install to add bat,ps1,reg,vbs to new context menu
    REG ADD "HKCR\.ps1\ShellNew" /v "NullFile" /t REG_SZ /d "" /f
    REG ADD "HKCR\.reg\ShellNew" /v "NullFile" /t REG_SZ /d "" /f
    REG ADD "HKCR\.bat\ShellNew" /v "NullFile" /t REG_SZ /d "" /f
    REG ADD "HKCR\.vbs\ShellNew" /v "NullFile" /t REG_SZ /d "" /f

    I want this this line and a blank line, when i create a new reg file. What i need to add to the script?

    Windows Registry Editor Version 5.00

    :)
     
    Feuer, Mar 26, 2021
    #1

  2. Adapting .REG Files.

    Thanks KeithM for the suggestions.

    I will have a go at that later!

    I assume that I can add the completed working menu to ALL 7 sections that you have listed to make it available wherever I am in the OS, is that correct please?

    Thanks in advance.
     
    Paul Black, Mar 26, 2021
    #2
  3. tjt263 Win User
    How can I create a new .reg file from the CLI

    I'd like to create a new .reg file and add it to the registry, as suggested in this article.

    It's pretty simple. But I want to script it. I thought I could just use REG ADD, but I'm not sure how to incorporate the @="@SYSNew .reg file but not blank :DoesNotExist" part at the end.
     
    tjt263, Mar 26, 2021
    #3
  4. Try3 Win User

    New .reg file but not blank

    Import reg file in a batch file

    I suggest that, as a first step, you edit the batch file so it captures the errorlevel after the reg import command.

    - Something simple such asecho The reg import command result is - %ErrorLevel% will do as long as long as you put it in as the line straight after the reg import command and then put aPause command in as the next line [before restarting explorer] so you can have a look.

    - Checking the errorlevel will tell you whether reg import thinks it has completed correctly or not.
    - While you are checking the errorlevel you could also go to the Registry key [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search] to see what has happened to it [make sure you Refresh the view if you were already at that key beforehand]



    I have never used reg import but I know there are optional arguments for 32/64 bit items so perhaps you might investigate them
    - enter reg import /? >RegImport.txt in a command prompt to save the Help guidance that mentions these switches.
    - I do not think these switches are relevant but I have never investigated their use properly.
    - For all I know, the problem might be as simple as reg import not being able to handle the comment lines, such as ; Cartella utente, properly

    Best of luck,
    Denis
     
Thema:

New .reg file but not blank

Loading...
  1. New .reg file but not blank - Similar Threads - reg file blank

  2. 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
  3. Reg File to Set Up a New System

    in Windows 10 Installation and Upgrade
    Reg File to Set Up a New System: After an OS is installed, it needs to be set up. In Win 7, it was easy. Two groups of settings needed to be changed, and the rest was mainly drivers and personal preferences. However, Win 10 is a mess that takes a couple hours to properly set up. So, I spent about three days...
  4. 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...
  5. 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...
  6. 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...
  7. .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...
  8. Import reg file in a batch file

    in Windows 10 Support
    Import reg file in a batch file: Hi, i've a reg file to mod windows 10 that works properly, but if i import it in a batch file it doesn't work. this is the reg file i've called Windows10.reg Code: Windows Registry Editor Version 5.00...
  9. Downloading a reg file.

    in Browsers and Email
    Downloading a reg file.: This is not a problem just a observation. I noticed something strange when I went to download Brink's reg file to bring back the Photo Viewer. Either Pale Moon or Windows 10 thinks it's a .TS video file. [img] Has anyone else notice this when downloading a reg file? 40086
  10. Set File Association with .reg File

    in Windows 10 Software and Apps
    Set File Association with .reg File: Hi, i have a problem with File Associations in Windows (Build 1607). I want to set a File Association for .pdf so that i can start .pdf files with Adobe Acrobat Reader DC and not with Microsoft Edge (default). It is possible if i change it over System -> Default Apps...