powershell - Adding another directory to the env:temp -
i trying use
new-item -itemtype directory -path $env:temp/newfolder
obviously won't work because $env:temp
doesn't allow /newfolder
. trying utilize access folder create before in script. total functionality of script extract zip temp folder, don't want utilize hard coded paths trying extract folder in user temp folder.
what easiest way create variable using env:temp
added directory?
thanks in advance.
you need expand variable first build total string. this.
$deploylocation = ($env:temp) + '\newfolder\'
powershell scripting
No comments:
Post a Comment