Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要你的帮助。
如何编写批处理文件以检查网络驱动器是否已连接以及是否要求用户以 Y/N 删除它?
沿着这些路线的东西......
if exist n:\. goto network goto :eof :network SET /P remove=Remove network (Y/N) if !%remove%!==!Y! net use n: /delete