Get-Childitem - want only the containing folder


i need move existing folder 1 location another.  while information provided tells me new location have search folder structure current location.  when using get-childitem output is:

directory:  \\myserver\share\group\location

mode            lastwritetime                   length       name

                                                                              directoryname

when assign get-childitem variable returns "directoryname".  yet when echo variable out screen above output.  how can reference "directory: \\myserver\share\group\location" part without getting "directoryname"

..... | select-object -expandproperty fullname


grüße - best regards

ps:> (79,108,97,102|%{[char]$_})-join''



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...