自动答案y窗口命令网络共享 /删除



我在Windows中尝试了net命令的自动答案。

echo Y | net share /delete ServerShare_XXX
net share /delete ServerShare_XXX && echo y

我无法确认自动答案y。请帮助我。

C:WINDOWSsystem32>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

最新更新