Adapting .REG Files.

Page 10 of 13 FirstFirst ... 89101112 ... LastLast

  1. Posts : 7,631
    Windows 10 Home 20H2
       #91

    Adapting .REG Files.-1.jpg

    The above "# Run batch files.cmd" file is in this "# Run batch files.zip" file.
    Run it and tell me the results.
    Adapting .REG Files. Attached Files
      My Computer


  2. Posts : 18,032
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #92

    Hello @Matthew Wai, thanks for the file.

    I ran it and it finished and closed the cmd Window, it DOESN'T show:

    Operations completed.
    Press any key to continue . . .
      My Computer


  3. Posts : 7,631
    Windows 10 Home 20H2
       #93

    I have made some changes in the attached file. Please try again.
    Adapting .REG Files. Attached Files
      My Computer


  4. Posts : 18,032
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #94

    Hello @Matthew Wai, thanks for the file.

    I ran it and it finished and closed the cmd Window, it DOESN'T show:

    Operations completed.
    Press any key to continue . . .

    . . . but it did show the ERROR message as expected, and then when I closed the ERROR message, it showed the Version Window.
    Last edited by Paul Black; 18 Mar 2020 at 14:52.
      My Computer


  5. Posts : 7,631
    Windows 10 Home 20H2
       #95

    It seems that nothing can stop your CMD windows closing. Let's get back to basics.
    Code:
    echo Hello
    pause
    Tell me whether you can see "Hello".
      My Computer


  6. Posts : 18,032
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #96

    Yes, I can.
      My Computer


  7. Posts : 7,631
    Windows 10 Home 20H2
       #97

    Code:
    @echo off
    For %%i In ("C:\Users\System-Admin\System-Admin_Implementation\*.bat") Do (echo Processing "%%i"&CMD /C "%%i")
    echo Hello
    pause
    Tell me whether you can see "Hello".
      My Computer


  8. Posts : 18,032
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #98

    No! The cmd Window closes and then the ERROR message appears.
      My Computer


  9. Posts : 7,631
    Windows 10 Home 20H2
       #99

    Code:
    For %%i In ("C:\Users\System-Admin\System-Admin_Implementation\*.bat") Do (echo Processing "%%i"&CMD /C "%%i")
    I am at my wits' end. I can't figure out why the above line will force your CMD window into closing. Hopefully, an expert will come to help you.
      My Computer


  10. Posts : 18,032
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #100

    Matthew Wai said:
    Code:
    For %%i In ("C:\Users\System-Admin\System-Admin_Implementation\*.bat") Do (echo Processing "%%i"&CMD /C "%%i")
    I am at my wits' end. I can't figure out why the above line will force your CMD window into closing. Hopefully, an expert will come to help you.
    OK @Matthew Wai, not to worry and thanks for your time and effort.

    I will have a look tomorrow and see if it could be the last Batch File processed that is causing the problem or something like that!
    If we can figure this out then doing a script to run all the .ps1 files will probably be easy!
      My Computer


 

  Related Discussions
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 15:40.
Find Us




Windows 10 Forums