title: Batch not exiting Loop after Windows 10 April 2018 Update
body: <p>I use batch script to connect network drives on laptop, as standard way (via drive mapping) tries to connect them before WIFI gets connected, therefore is not always successful. This script used to work for almost last 3 years without any problems.</p>
  
  <pre><code>@echo off
  net use * /del /yes
  net use /persistent:no
  
  :Loop
  for /L %%A in (1,1,50) do (
  ping DiskStation | find /i "bytes=" &amp;&amp; goto Connected
  ping LocalHost -n 3 &gt; nul
  ECHO %%A
  )
  rundll32 user32.dll,MessageBeep -1
  goto Finish
  
  :Connected
  ping LocalHost -n 3 &gt; nul
  net use X: \\DiskStation\NaszePhotoVideo
  net use Z: \\DiskStation\NaszeDane
  
  :Finish
  </code></pre>
  
  <p>Script has stopped to work after Windows 10 April 2018 Update. Seems it cannot exit loop at <code>ping DiskStation | find /i "bytes=" &amp;&amp; goto Connected</code>.</p>
  
  <p>When I ping DiskStation in other command line window all works fine with standard result from the command.</p>