Map networked drive based on location

Set objNetwork = CreateObject("Wscript.Network")

strComputer = "."

Set objWMIService = GetObject("winmgmts:\" & strComputer & "rootcimv2")

Set colAdapters = objWMIService.ExecQuery _
    ("Select * From Win32_NetworkAdapterConfiguration Where IPEnabled=True")

For Each objAdapter in colAdapters
    For Each strAddress in objAdapter.IPAddress
        arrOctets = Split(strAddress, ".")
        If arrOctets(0) <> "" Then
            strSubnet = arrOctets(0) & "." & arrOctets(1) & "." & arrOctets(2)
            x = 1
            Exit For
        End If
        If x = 1 Then
            Exit For
        End If
    Next
Next

Set colItems = objWMIService.ExecQuery _
    ("Select * From Win32_LogicalDisk Where DeviceID = 'O:'")

If colItems.Count = 0 Then
    Select Case strSubnet
        Case "172.28.8" 
            objNetwork.MapNetworkDrive "O:", "\persei8Omicron"
        Case "172.16.3" 
            objNetwork.MapNetworkDrive "O:", "\persei3Omicron"
        Case "172.20.5" 
            objNetwork.MapNetworkDrive "O:", "\persei5Omicron"
    End Select
End If

My kids are starting to notice I’m a little different from the other dads. “Why don’t you have a straight job like everyone else?” they asked me the other day.
I told them this story: 
In the forest, there was a crooked tree and a straight tree. Every day, the straight tree would say to the crooked tree, “Look at me…I’m tall, and I’m straight, and I’m handsome. Look at you…you’re all crooked and bent over. No one wants to look at you.” And they grew up in that forest together. And then one day the loggers came, and they saw the crooked tree and the straight tree, and they said, “Just cut the straight trees and leave the rest.” So the loggers turned all the straight trees into lumber and toothpicks and paper. And the crooked tree is still there, growing stronger and stranger every day.

Tom Waits (via freecocaine)

notreallythisguyles:

christinemarieh:

prettylittlepolaroidsx:

bakewellpie:

freshprincesubs:

Will & Jaden Smith performing on the Graham Norton Show a Switch/Fresh Prince of Bel Air theme tune remix with an appearance from DJ Jazzy Jeff & Alfonso Ribeiro 🙂

aka THE BEST THING EVER!!

I am CRYING

My fave thing ever!

There are so many things I love about this. 

Love this! I am sitting here just grinning through the whole thing