title: get Common Documents folder in VBS
body: <p>To my great chagrin, I must use VBS to write an InstallShield 2010 LE custom action.  I have no VBS experience so I'm basically putting together code snippets that I find.</p>
  
  <p>I need to get a hold of the Common Documents folder (CSIDL_COMMON_DOCUMENTS).  It's not defined in <code>WScript.Shell.SpecialFolders</code> (although All Users Desktop is).  I found some example code that tries to link to a system DLL:</p>
  
  <pre><code>Private Declare Function SHGetFolderPath Lib "shfolder.dll" _
  Alias "SHGetFolderPathA" _
      (ByVal hwndOwner As Long, _
      ByVal nFolder As Long, _
      ByVal hToken As Long, _
      ByVal dwReserved As Long, _
      ByVal lpszPath As String) As Long
  </code></pre>
  
  <p>But when I try to run it in VbsEdit, I get the following error on the first line:</p>
  
  <p><code>Microsoft VBScript compilation error: Expected end of statement</code></p>
  
  <p>Any ideas?</p>