Windows 10: Import reg file in a batch file

Page 2 of 2 FirstFirst 12
  1.    06 Jul 2018 #11

    i've tried to add errorlevel line and this is the screen, i've also attached the files, you can see them.
    Thank you
    Attached Thumbnails Attached Thumbnails Cattura.PNG  
    Import reg file in a batch file Attached Files
      My ComputerSystem Spec


  2. Posts : 925
    Windows 10 Home x64 and Pro x86
       06 Jul 2018 #12

    Personally, I would
    1 Change the reg import command to include the full folder path & filename of the windows10.reg file - operating as Admin the current folder is not the folder the batch file is saved in unless you make it do so.
    2 Act on the content of the error message, if I knew what it meant - if, as appears to be the case, it says it cannot find the file then I would not be surprised
    3 Remove all the commented out lines [the lines beginning with ;] and see how it behaves then

    Denis
      My ComputerSystem Spec

  3. TairikuOkami's Avatar
    Posts : 3,413
    10.6 Home 1809 x64
       06 Jul 2018 #13

    Why do not you just convert reg to bat instead of trying to run reg via bat.

    Reg Converter
      My ComputerSystem Spec

  4.    10 Jul 2018 #14

    i'll try reg converter, thank you
      My ComputerSystem Spec


 
Page 2 of 2 FirstFirst 12

Related Threads
How can I add to this batch command to include the date: xcopy C:\all\* Z:\Allbak\* /E /Y /C I'd like the resulting file to be named "Z:\Allbak171129" (yr mo day). The plan is to set up a task schedule to run the batch file every week. I...
Need help with batch file in General Support
No serious Batch file or scripting experience, so bear with me. We use a site for our business that has to run on IE and has to have the cache cleared a certain way sometimes for it to function. We have to go IE options, uncheck delete history on...
autorun batch file usb in General Support
I want run a bat file from usb stick while inserting it plz help me
Batch File Help in Software and Apps
I've never dabbled much in batch files, as I've usually been able to find pre-made ones to do what I wanted. We have an application that handles user data backups. It has three services, and at times, one or two of the three don't start...
Hi there forum, how do you change the Visual effects using a batch file or registry file. Thanks, Edward.
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 08:11.
Find Us