title: Check if folder is there, if not create it on current user logged in VBS
body: <p>Currently this is my script</p>
  
  <pre><code>Set oWS = WScript.CreateObject("WScript.Shell")
  ' Get the %userprofile% in a variable, or else it won't be recognized
  userProfile = oWS.ExpandEnvironmentStrings( "%userprofile%" )
  </code></pre>
  
  <p>What I am trying to do is grab the current user logged in, I want it to check the directory D:\"personsuser"\Appdata\Roaming\Local to see if the folder "Local" is created, if it isn't created I want to create one via createobject in vbs. The script above from what i know grabs the current logged on user, however i'm not sure how to use this variable to create a folder.</p>
  
  <p>I know i will have to incorporate something along these lines:</p>
  
  <pre><code>Set objFSO = CreateObject("Scripting.FileSystemObject")
  Set objFolder = objFSO.CreateFolder("C:\FSO")
  </code></pre>
  
  <p>And or something along these lines:</p>
  
  <pre><code>Dim objNetwork
  Dim userName
  Dim FSO
  
  Set FSO = CreateObject("Scripting.FileSystemObject")
  
  Set objNetwork = CreateObject("WScript.Network")
  userName = objNetwork.userName
  
  If fso.driveExists("D:\" &amp; userName &amp; "\AppData\Local\") Then
      FSO.CreateDirectory ("D:\" &amp; userName &amp; "\AppData\Local\")
  End If
  </code></pre>
  
  <p>Thanks in advance, not very familiar with VBS however that is the only platform I can operate from in the environment that i'm using it.</p>