源码之家

  • 首页
  • 文章
  • 问答
  • 下载
您的位置: 首页  >  技术问答  >  PowerShell运行多个脚本

PowerShell运行多个脚本

分类: 技术问答 • 2022-03-31 11:13:21

PowerShell运行多个脚本

问题描述:

有没有办法创建一个脚本来运行多个脚本?第一个脚本也应该在下一个脚本允许启动之前完成。PowerShell运行多个脚本

例子:

.\script1.ps1 arg1 

#wait until script1 is done 
.\script2.ps1 arg1 arg2 

#wait until script2 is done 
.\script3.ps1 arg1 arg2 

答

你给的例子是一个有效的脚本,只是把它放在一个脚本文件并运行它。

答

只是尝试:

.\script1.ps1 arg1;.\script2.ps1 arg1 arg2;.\script3.ps1 arg1 arg2 

相关推荐

  • 服务器(Centos)上安装运行多个Mysql实例
  • shell脚本:运行、调试 及 自动加载文本信息
  • shell-shell中脚本的运行方式
  • 停止运行此脚本
  • 京东叠蛋糕脚本 非aujs,直接pc浏览器运行
  • scrapy运行无selenium自动化爬虫脚本,一直等待连接selenium服务
  • 【亲测有效】Nodepad++/Sublime Text3中Python脚本运行出现语法错误:IndentationError: unindent does not match any outer i...
  • 自定义脚本加入开机自启动_如何启用程序和自定义脚本以在启动时运行
  • shell小练习:编写一个shell脚本,批量创建Linux普通用户 要求运行脚本时输入 前缀+编号初始值+数量 如果已经存在提醒
  • 一套测试用例如何实现支持多个环境运行
  • 从ASP.NET运行PowerShell脚本
  • 运行PowerShell脚本.PS1
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 源码之家    备案号:   粤ICP备20058927号