How to concat path and file name for creation and removal
问题 I'm trying the following. $woohoo = "c:\temp\shabang" New-Item -ItemType File $woohoo This creates a file at desired location. However, I'd like to split the $woo and $hoo and go something like this. $woo = "c:\temp" $hoo = "shabang" New-Item -ItemType File ($woo + $hoo) This doesn't work and I need a hint on how to make it fly. This suggestion nor this on worked out when applied to my situation. Apparently - given path format is unsupported. Suggestions? Edit This is what it looks like: Edit