Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Strange error with $env:HOMEDRIVE

$
0
0

Hi there,

I'm trying to copy a file somewhere into my HOMEDRIVE, but there seems to be a strange error. I defined it like that:

$u=$env:HOMEDRIVE

But if I do want to put something in there, it tells me that Drive "U" (yes it's the letter U itself) is not avaiable. How did it even know that it was U?

$ld=Join-Path$u"\Documents\Visual Studio 2010\Settings"

When running this line, it tells me "Drive not found. A drive with the name U does not exist."


Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>