我尝试在 Windows 中自动应答 net 命令。
echo Y | net share /delete ServerShare_XXX
net share /delete ServerShare_XXX && echo y
我无法确认自动回答 y。请帮助我。
C:\WINDOWS\system32>echo y | net share /delete ServerShare_XXX
Users have open files on ServerShare_XXX. Continuing the operation will force the files closed.
Do you want to continue this operation? (Y/N) [N]:
No valid response was provided.
最佳答案
net share ServerShare_XXX /delete /yes
关于windows - 自动应答 Y 窗口命令网络共享/删除,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43466818/