abbodi1406's Batch Scripts Repo

Discussion in 'Scripting' started by abbodi1406, May 4, 2017.

  1. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,852
    2,105
    60
    sorry Enthousiast, i speak from windows 11 iot enterprise , UUP Version
     
  2. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,669
    103,497
    450
    No difference, just use normal Enterprise.
     
  3. nima1024

    nima1024 MDL Member

    Sep 18, 2010
    240
    42
    10
    Hello @abbodi1406,
    I hope you are doing well.

    Is it possible to run W10UI multiple times automatically based on pre-defined settings?

    For example, making some W10UI.ini files and run W10UI.cmd files one after another with only one command?
    In this way, I can make multiple updated ISOs with only running one executable.

    It will be great if we can also write complete log of each session into separate files, so we find if any of the integrations encountered error by reading log files.

    Regards,
     
  4. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,669
    103,497
    450
    As long as the cmd windows aren't closed you have your separate log;)
     
  5. nima1024

    nima1024 MDL Member

    Sep 18, 2010
    240
    42
    10
    Thanks for your answer.

    Would you please answer my first question? I mean regarding make W10UI automated.
     
  6. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,669
    103,497
    450
    Put all different projects into different folders and create a script that calls them?

    I don't see a need for this, i just start one project and when it's finished i start the next one, just do home and after home is finished create all other skus.
     
  7. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,209
    90,787
    340
    @nima1024

    Yes, it can work
    place the multiple scripts in different locations, each with correctly configured W10UI.ini (Target, Repo, AutoStart..)
    and run them from another batch script
    example:
    Code:
    call C:\1\W10UI.cmd >log1.txt 2>&1
    call C:\2\W10UI.cmd >log2.txt 2>&1
    call C:\3\W10UI.cmd >log3.txt 2>&1
     
  8. nima1024

    nima1024 MDL Member

    Sep 18, 2010
    240
    42
    10
    Exactly what I wanted! :clap:
    Thank you so much for your help.:wub:
     
  9. Flipp3r

    Flipp3r MDL Guru

    Feb 11, 2009
    2,008
    957
    90
    You'll also have to edit W10UI.CMD and comment out the pause at the end of the script for it to continue...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. nima1024

    nima1024 MDL Member

    Sep 18, 2010
    240
    42
    10
    No need for it when we use different W10UI.cmd files.
     
  11. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,669
    103,497
    450
    Isn't it needed for the W10UI script to return to the calling script to resume with the next W10UI process?
     
  12. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,710
    210
    Not if they run all at once.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,669
    103,497
    450
    I always assumed that CALL lines were ran after each other and not simultaneously.
     
  14. nima1024

    nima1024 MDL Member

    Sep 18, 2010
    240
    42
    10
    I think it will be automatically return to calling script when we use AutoStart feature of W10UI.

    They do run after each other ant not simultaneously.
     
  15. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    Yes, it is one after the other ends.

    To execute everything at the same time it would be necessary the command:
    start "" /i cmd.exe /C "folderpath\scriptname.cmd"

    Simultaneously it will conflict the moment the DISM is running if you have any DISM execution in this case.

    But I think what he wants is to be able to let the process running and, when he comes back, see everything ready.
    Also, simultaneous or not, the time difference can be little. Due to increased processing load and memory use. Of course it depends on the power of the machine.
     
  16. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    Abbodi implemented AutoExit only in convert-UUP.cmd.

    For W10UI.exe and for create_virtual_editions.cmd if is useful.
     
  17. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,669
    103,497
    450
    It was not me saying that.
     
  18. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,710
    210
    #1878 Carlos Detweiller, May 12, 2022
    Last edited: May 13, 2022
    "Call" or "Start" with "/WAIT" runs sequentially and returns. For running all at one, use "Start" without "/WAIT".

    I highly doubt that DISM could run multiple tasks in parallel. And if it could, they'd run like :poop:. :Flush:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. Flipp3r

    Flipp3r MDL Guru

    Feb 11, 2009
    2,008
    957
    90
    AutoStart will start the script but when it finishes you have a pause:
    Code:
    echo Press 9 to exit.
    choice /c 9 /n
    If your using your batch file to run W10UI.cmd, you'd want it to return back without having to press 9...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,209
    90,787
    340
    Actually it exits too :)
    Code:
    10.11:
    - If AutoStart option is active, the script will not clear initial screen, and will auto exit at the end