Dancing with the Samburu at sunset

I’d spent a couple of days at the Lake Turkana Festival in Kenya, and the days had been hot and humid. Our last night there, dusk had arrived, and with it a fall in temperatures, allowing me to join in with the tribal dances. Pictured are members of the Samburu tribe singing and dancing well into the evening. It was a great night out.

Kids playing in river with a tyre

It had been a long journey travelling by car from Yangon to Hpa An. At our destination, having unpacked, we explored the immediate vicinity of Hpa An and found a great place just as the sun was setting. Children were playing in the river, and an occasional boat would pass, but it was quiet and peaceful. A great end to the day.

Refuse worker in Myanmar

This lady was hard at work in a refuse dump out in the country, several miles from the nearest town. Some of the refuse had been set ablaze and, as I ventured further in, my throat and nose became the first casualties in the onslaught brought on by the thick acrid smoke. There were two benefits though; where there was an abundance of smoke, there was a scarcity of flies, and the rotting stink from the refuse was masked. You pick your poison.

The heat of the sun, coupled with the heat of the fires, did not help. The lady worked on, moving piles of refuse from one area to another, sorting out those that should be burnt, those that should be buried, and those that could be scavenged. This was a hell to me. But these people suffer and endure. She looked over to us, and smiled.

Red flower

The Cameron Highlands of Malaysia have a rich tropical highland fauna and flora, with tea and strawberries being amongst its more famous products. Here, in 2008, I stopped to peek at this red flower with my recently acquired macro lens. I have fond memories of this place and, one day, I may return.

Reconnect mapped network drives using Windows Command Prompt script

When booting into Windows, the OS sometimes does not reconnect mapped network drives even though the mapping is configured with the “Reconnect at sign-in” option. This is due with various timing constraints of resources during boot.

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’ve therefore written a Command Prompt script using the “net use” command. Not the prettiest of code but it does the job. Tested in Windows 10 Pro 64-bit.

The script was saved as a .CMD batch file which is executed by twice using Task Scheduler at user log on; one in non-admin and the other in admin mode. This allows mapped drives to be visible to those applications running in non-admin and also to those applications running in admin modes.

@ECHO OFF
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
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" IF "%ERRORLEVEL%" NEQ "85" (
SET /A counter=%counter%+1
GOTO Start
)
:End

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