title: How to concat path and file name for creation and removal
body: <p>I'm trying the following.</p>
  <pre><code>$woohoo = &quot;c:\temp\shabang&quot;
  New-Item -ItemType File $woohoo
  </code></pre>
  <p>This creates a file at desired location. However, I'd like to split the <code>$woo</code> and <code>$hoo</code> and go something like this.</p>
  <pre><code>$woo = &quot;c:\temp&quot;
  $hoo = &quot;shabang&quot;
  New-Item -ItemType File ($woo + $hoo)
  </code></pre>
  <p>This doesn't work and I need a hint on how to make it fly. <a href="http://social.technet.microsoft.com/Forums/windowsserver/en-US/4e370143-eb34-4acc-96a2-301b102e69ec/concatenate-strings-and-variables?forum=winserverpowershell" rel="nofollow noreferrer">This suggestion</a> nor <a href="https://stackoverflow.com/questions/13783759/concatenate-network-path-variable">this on</a> worked out when applied to my situation. Apparently - given path format is unsupported.</p>
  <p>Suggestions?</p>
  <h1>Edit</h1>
  <p>This is what it looks like:
  <img src="https://i.stack.imgur.com/aaA7t.png" alt="enter image description here" /></p>
  <h1>Edit 2</h1>
  <p>$woo = &quot;c:\temp&quot;; $hoo= &quot;shabang&quot;; New-Item -ItemType File (Join-Path $woo $hoo)</p>