SyntaxFix
Write A Post
Hire A Developer
Questions
I was not even concentrating, here is how to do it
$DOCDIR = [Environment]::GetFolderPath("MyDocuments") $TARGETDIR = '$DOCDIR\MatchedLog' if(!(Test-Path -Path $TARGETDIR )){ New-Item -ItemType directory -Path $TARGETDIR }