Run Multiple Powershell Scripts Sequentially - on a Folder - Combine Scripts into a Master Script

后端 未结 6 2166
花落未央
花落未央 2021-02-05 08:25

I have 6+ scripts and growing to run on a folder, what is the best way to have them run one after the other.

I have seen and tried this thread - it did not work unfortun

6条回答
  •  花落未央
    2021-02-05 09:20

    Simply create a text file, using any code editor or text editor, and use the following example batch script:

    start /min powershell.exe C:\your folder\script1.ps1
    start /min powershell.exe C:\your folder\script2.ps1
    

    Save it as a script.bat and open it. This will make two powershell scripts run at the same time.

提交回复
热议问题