title: Append or put variable within string in vbscript?
body: <p>I am wanting to include the variable <strong>domainUser</strong> within the quoted command sent to the commandline but I am not having any luck. What I am trying to accomplish is to create a log file titled with their domain name but I keep getting errors or just getting a txt file with no title.</p>
  
  <pre><code>Dim domainUser
  domainUser = Example123
  
  objInParam.Properties_.Item("CommandLine") = "cmd /c ECHO Test &gt;&gt; c:\UserLogs\"""domainUser""".txt"
  </code></pre>
  
  <p>So line 4 would be read like this (or whatever domain user I put in on line 2)...</p>
  
  <pre><code>objInParam.Properties_.Item("CommandLine") = "cmd /c ECHO Test &gt;&gt; c:\UserLogs\Example123.txt"
  </code></pre>