Tom*_*ica 8 windows batch command-line cmd.exe
我想在没有提示的情况下停止服务。这是我尝试过的:
C:\>echo y|net stop WAS
The following services are dependent on the Windows Process Activation Service service.
Stopping the Windows Process Activation Service service will also stop these services.
World Wide Web Publishing Service
Do you want to continue this operation? (Y/N) [N]:
No valid response was provided.
Run Code Online (Sandbox Code Playgroud)
我想在批处理作业中执行此操作。
imt*_*man 18
有一个未记录的参数可以与net
命令一起使用,/y
或者/yes
绕过提示。所以在你的情况下,它将是:
net stop WAS /y
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
21461 次 |
最近记录: |