Windows 10: Import reg file in a batch file

Discus and support Import reg file in a batch file in Windows 10 Support to solve the problem; 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... Discussion in 'Windows 10 Support' started by jinkazama, Jul 5, 2018.

  1. jinkazama Win User

    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 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons] [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu] ; Cartella utente "{59031a47-3f72-44a7-89c5-5595fe6b30ee}"=dword:00000000 ; Computer "{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000 ; Rete "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}"=dword:00000000 ; Cestino "{645FF040-5081-101B-9F08-00AA002F954E}"=dword:00000000 ; Pannello di controllo "{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}"=dword:00000001 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel] ; Cartella utente "{59031a47-3f72-44a7-89c5-5595fe6b30ee}"=dword:00000000 ; Computer "{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000 ; Rete "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}"=dword:00000000 ; Cestino "{645FF040-5081-101B-9F08-00AA002F954E}"=dword:00000000 ; Pannello di controllo "{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}"=dword:00000001 ; Cortana Disabilita [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search] "AllowCortana"=dword:00000000 ; Smartscreen Disabilita [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer] "SmartScreenEnabled"="Off" ; Defender Disabilita [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender] "DisableAntiSpyware"=dword:00000001 ; Onedrive Disabilita [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\OneDrive] "DisableFileSyncNGSC"=dword:00000001 ; Icona Contatti Disabilita [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People] "PeopleBand"=dword:00000000[/quote] If i import it in a batch file called Windows10.cmd which run the reg and force the Explorer refresh to apply it
    Code: reg import Windows10.reg taskkill /f /im explorer.exe start explorer.exe[/quote] some features don't work (for example Cortana is not disabled).
    Can you help me to understand where is the problem?
    Thank you

    :)
     
    jinkazama, Jul 5, 2018
    #1
  2. oily_17 Win User

    Batch Files Knowledge Base

    Don't use batch files very much but one I find useful is for creating a list of files in a directory.
    Just copy the text below into Notepad and save as Filelist.bat

    dir /a /-p /o:gen >filelist.txt

    When you run it from a folder it will create a Filelist.txt file,in the same folder, that lists all the files in that folder.Useful when you are too lazy to type all the files out yourself.
     
    oily_17, Jul 5, 2018
    #2
  3. Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, Jul 5, 2018
    #3
  4. Import reg file in a batch file

    Batch file

    thank you for your reply. how to merge the codes so that the batch file does this

    the batch file displays the options below

    1. open the *.spl file in notepad
    2. delete the *.shd and *.spl files
    3.exit

    commands execute as options are selected
     
    Sandeep Bhugoo, Jul 5, 2018
    #4
Thema:

Import reg file in a batch file

Loading...
  1. Import reg file in a batch file - Similar Threads - Import reg file

  2. Batch File

    in Windows 10 Software and Apps
    Batch File: Hi, I am trying to create a batch file to determine whether a user account is signed on.I don't have enough experience to get it to @Echo it worked. Any advice please.Batch file:REM Query whether user SBackup is active@echo onsetlocal enabledelayedexpansionset...
  3. Batch Files

    in Windows 10 Gaming
    Batch Files: How do i make it that my batch file puts itself in to startup https://answers.microsoft.com/en-us/windows/forum/all/batch-files/6156404d-20d4-4f58-bee5-14629dbf7b10
  4. Batch Files

    in Windows 10 Software and Apps
    Batch Files: How do i make it that my batch file puts itself in to startup https://answers.microsoft.com/en-us/windows/forum/all/batch-files/6156404d-20d4-4f58-bee5-14629dbf7b10
  5. REG Import

    in Windows 10 Support
    REG Import: Good afternoon, I am putting a Batch file together that involves exporting and importing the Registry. However, I have a question. I am only posting the relevant parts of the code instead of the whole code. To export the Registry I am using . . . Code: for %%a in (HKLM HKCU...
  6. Batch File

    in Windows 10 Support
    Batch File: I need a batch file to create a folder with sub folders. The sub folders will be named the current date, they will go in a folder on c drive. For example we can call the folder test and it would be in documents on c drive. Every time we run the batch file it would create a...
  7. Reg file to batch remove BLOCK from files /Folder

    in Windows 10 Performance & Maintenance
    Reg file to batch remove BLOCK from files /Folder: Hi I found this, which I added to the registry but the right click option to unblock files / folders hasnt appeared any help please [HKEY_CLASSES_ROOT\*\shell\unblockfile]@=”Unblock file”[HKEY_CLASSES_ROOT\*\shell\unblockfile\command]@=”cmd /c streams -d...
  8. Reg/batch to disable "Open File - Security Warning"

    in Windows 10 Support
    Reg/batch to disable "Open File - Security Warning": Hi guys, Is there a reg/batch script or group policy to turn off this annoying screen in Windows 10? [img] I know it can be disabled somewehre in IE options but I need it to be a a script or something. 45444
  9. Cannot import .reg. Error opening the file.

    in Windows 10 Support
    Cannot import .reg. Error opening the file.: ...There may be a disk or file system error. Happens when double-clicking reg-file on the NAS-share, which is mapped as a network drive. User is a user with admin rights (membership of Administrators group), and it is the first and only user that was created while W10 was...
  10. A REGISTRY mystery - reg file doesn't import properly

    in Windows 10 Support
    A REGISTRY mystery - reg file doesn't import properly: I have imported hundreds of reg files into every windows build since 95, now I run into another W10 mystery. I have a complete export of the key REPETIER. When I import it some REG_SZ entries do not import. This is an unmodified export of a sub-key under Repetier. reg...

Users found this page by searching for:

  1. running reg file in a batch file

    ,
  2. import reg file batch file

    ,
  3. batch file import registry file