【问题标题】:How to write commands in second CMD using the first CMD如何使用第一个 CMD 在第二个 CMD 中编写命令
【发布时间】:2022-01-15 08:08:26
【问题描述】:
所以我有一个 python 文件,我将使用 VScode 运行它,然后它应该在后台执行另一个 python 脚本,并且应该在新的命令提示符中显示输出。
This was quite helpful
但是当我执行.\venv\scripts\activate.bat 打开虚拟环境时,我卡住了,无法执行进一步的命令...我知道,因为它的虚拟环境我们无法直接与其通信,但有没有办法/解决方法能够即使在虚拟环境中也能执行命令?
【问题讨论】:
标签:
python
windows
virtualenv
command-prompt
【解决方案1】:
你的意思是如何在cmd中依次运行多个命令?
调用命令1
调用命令2
.
.
调用commandx
call mvn install:install-file -Dfile=spring.jar -DgroupId=com.td.tdi.creditProtection.webservice -DartifactId=spring -Dversion=1.0 -Dpackaging=jar
call mvn install:install-file -Dfile=com.ibm.ws.prereq.jaxrs.jar -DgroupId=com.td.tdi.creditProtection.webservice -DartifactId=com.ibm.ws.prereq.jaxrs -Dversion=1.0 -Dpackaging=jar
call mvn install:install-file -Dfile=com.ibm.ws.runtime.jar -DgroupId=com.td.tdi.creditProtection.webservice -DartifactId=com.ibm.ws.runtime -Dversion=1.0 -Dpackaging=jar
call mvn install:install-file -Dfile=IMSConnection_Utilities.jar -DgroupId=com.td.tdi.creditProtection.webservice -DartifactId=IMSConnection_Utilities -Dversion=1.0 -Dpackaging=jar