Dawn near the Kyaup Kalap Pagoda a few miles from Hpa An, Myanmar (Burma). Photo taken in December 2014.
Oh dear, oh dear, oh dear.
- Windows 10 Pro Anniversary Update tweaked to stop you disabling app promos
Windows Pro will no longer be so “pro”. I’m calling it ad-riddled crippleware. It’s a shame. I’m considering a jump from Microsoft OS to Apple for my next machine.
There I was, in southern Iraq, just a few miles from the Iranian border. It was another hot day, and I was standing outside the structure called Ezra’s Tomb. Nearby, three kids were peeking through a doorway, their faces in obvious delight at the interest being shown to them by my camera. But the countless horrors of people killing other people will touch their lives in countless ways, and I wonder if they still smile.
Sometimes when booting into Windows, the OS does not reconnect mapped network drives even though the mapping was configured with the “Reconnect at sign-in” option.
Although there are free Third Party software available that can automatically reconnect your mapped network drives, I would rather be able to do this using built-in tools than add more unnecessary software to my system. I came across a response someone had written in a blog about using Third Party and showed how you could use a few Command Prompt commands using the “net use” command. I’ve lost the link to that blog article, but I did copy that code and built my own batch script around it. The key change I wanted to make was to put in a limited number of attempts just in case the NAS drive was down.
This is the code I use which I’ve put in a .CMD batch file which is executed by Task Scheduler at user log on.; this is better than executing it via a shortcut from within the Windows “StartUp” directory as I have flexibility in adding delays without needing to change the code. Talking of the code, I recognise that it is a bit ugly and some of you scripting experts can make it far more elegant. But it works for me and I didn’t want to spend too much time on this when I could be doing other more fun things! Note that this has only been tested in Windows 10 Pro 64-bit.
@ECHO OFF SETLOCAL ENABLEEXTENSIONS SET me=%~n0 SET parent=%~dp0 TITLE Mapping network drives @ECHO Please wait whilst we reconnect your network drives. SET neterror=0 SET counter=1 SET loopvalue=11 SET /A trueloop=%loopvalue%-1 :Start ECHO _____________________________________ ECHO( IF %counter% EQU %loopvalue% ( ECHO Connection to D:\ drive timed-out SET neterror=1 GOTO End ) ECHO Attempt %counter% of %trueloop% to D:\ drive TIMEOUT /t 5 /NOBREAK >NUL IF EXIST D:\NUL ( ECHO Attempt %counter% successful. GOTO End ) NET USE D: \\192.168.49.69\Data /PERSISTENT:YES IF %ERRORLEVEL% NEQ 0 ( SET /A counter=%counter%+1 GOTO Start ) :End SET counter=1 SET loopvalue=8 SET /A trueloop=%loopvalue%-1 IF %neterror% EQU 0 GOTO Endofscript :userconfirm ECHO _____________________________________ ECHO( SET /P userinput="Errors were found. Do you wish to try again [Y/n] " IF /I "%userinput%" EQU "y" GOTO Start IF /I "%userinput%" EQU "" GOTO Start IF /I "%userinput%" EQU "n" GOTO Endofscript GOTO userconfirm :Endofscript ECHO _____________________________________ ECHO( @ECHO Please wait, script is closing. TIMEOUT /t 5 /NOBREAK >NUL ENDLOCAL @ECHO OFF @EXIT /B 0
When I took this shot I thought that the photo would be a failure due to the extreme dynamic range involved. It was hand-held, shooting into the sun with the main subject being the Padaung woman in the shade. I revisited that photo this weekend and found, to my surprise, that it had a lot of information, and that it was close to my vision. So here it is in all its glory.