Test-Path Question

Topics: Archive - General
Mar 5, 2015 at 12:26 AM
If the file does exist, can someone tell me why this returns false:
$File1 = "C:\Data\Test Test\Test.txt"
Test-Path $File1

If I use a directory path with no space, then it returns true.
Or if I do not use a variable and the directory path has a space, it returns true.

And if this is simple, I apologize. I am learning powershell and its syntax. But I could not find an example of test-path use with a space in the directory path or file name for that matter.
Mar 5, 2015 at 4:04 PM
Nevermind. I am an idiot. You can delete this thread.