title: VB Script: create shortcut to open file with specific program (mspaint)
body: <p>I am using VB script to create a shortcut file to open an image. No problems there. Where I am having problems is: trying to open that image with mspaint.exe specifically; I cannot get the <code>oLink.TargetPath</code> to save into the shortcut's "target" field in its properties. I get an error message that says it expects end of statement at <code>"C:\_</code>. Please help! :)</p>
  
  <pre><code>Set shc = WScript.CreateObject("WScript.Shell") 
  templateFile = "Mockup_myTest_Shortcut.lnk" 
  Set oLink = shc.CreateShortcut(templateFile)
  oLink.TargetPath = "C:\Windows\system32\mspaint.exe" "C:\_ OneDrive\Corporativo Bimbo, S.A. de C. 
  V\Barcel USA Information Technology - Documents\_ Wrike\Specification Mockups\_ Mockup Template.png"
  oLink.Save
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/fSc3s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fSc3s.png" alt="File Explorer"></a></p>