Re: [PS] Bug? Move-Item on folder to non-existing folder is equivalent to rename
- From: "Keith Hill [MVP]" <r_keith_hill@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 18 May 2006 10:58:03 -0600
"Alex K. Angelopoulos [MVP]" <a k a @ m v p s . o r g> wrote in message
news:uf7QOcpeGHA.1208@xxxxxxxxxxxxxxxxxxxxxxx
If I then do this:The behavior you saw is what I would have expected. There is nothing in the
Move-Item -Path C:\New.Directory C:\temp\ImNotHere\
files contained in New.Directory are now in ImNotHere, and there is no
longer a New.Directory folder.
This looks like a bug to me, since the effect for non-existing and
pre-existing paths is radically different.
command that tells move-item that the second arg is supposed to be a dir
instead of a new filename sans extension. I use move or mv to rename files
all the time. :-)
--
Keith
.
- Follow-Ups:
- Re: [PS] Bug? Move-Item on folder to non-existing folder is equivalent to rename
- From: Andrew Watt [MVP]
- Re: [PS] Bug? Move-Item on folder to non-existing folder is equivalent to rename
- Prev by Date: Re: [PSH] get-credential automation
- Next by Date: [PS] Escaping from line continuation?
- Previous by thread: Re: [PSH] get-credential automation
- Next by thread: Re: [PS] Bug? Move-Item on folder to non-existing folder is equivalent to rename
- Index(es):
Relevant Pages
|