How to avoid 12 seconds delay when disonnecting from share in Windows 7?
问题 I'm making some utils that uses NetUseAdd and NetUseDel functions to connect/disconnect to share. In Windows 7 I noticed that between calling NetUseDel and real disconnnection passes nearly 12 seconds. I made some investigations and found that net use \server /del also disonnects only after 12 seconds. Here's little script and Wireshark output, corresponding to run of script: net use \\server "" /user:"" net use \\server /delete http://i.stack.imgur.com/5CyCw.png Setting last tree connect smb