ms dos - Bat file Disconnecting a network drive if it exists -


i need help.

how can batch file written check see if network drive connected , if ask user y/n delete it?

something along these lines...

if exist n:\. goto network goto :eof  :network set /p remove=remove network (y/n) if !%remove%!==!y! net use n: /delete 

Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -