Code Is Not Creating A Directory?

I am attempting to get the date in a mm.dd.yy format, then create a folder based off of that formatting.  This is the syntax I am using, but no error is thrown and the directory is not created either?!

$FormattedDate = Get-Date -f 'MM.dd.yy'
[System.IO.Directory]::CreateDirectory("C:\Daily\Ready" + $FormattedDate + "\James\")
	


May 27th, 2015 3:44pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics