Re: [PS] Bug? Move-Item on folder to non-existing folder is equivalent to rename



"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:
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.
The behavior you saw is what I would have expected. There is nothing in the
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


.



Relevant Pages

  • newfolder.exe containment procedure
    ... File Size equals 208Kb, uses a folder Icon the same name as parent folder, ... Ensure you set the PC to show hidden and system files and file extensions. ... That is the entry that starts the bug. ... delete the dormant virus files. ...
    (microsoft.public.security.virus)
  • Re: bug or feature: postponed and answered (A) flag
    ... :) and I think I've discovered a bug in the way postponed messages ... that you replied to a message in a folder, ... Pine only registered the UID ... I do agree that it would be nice to have the "A" flag added to the ...
    (comp.mail.pine)
  • Re: Problem in searching a file containing a word or phrase
    ... Use Agent Ransack or another program if you wish to search files with "odd" extensions. ... How to submit this bug to Microsoft so that they fix it? ... For the Search criteria, I have left "All or part of the file name" as blank, since I want to search all files ... Eventhough there are files in the folder I have selected, which contains the word I entered, I get the message "Search is complete. ...
    (microsoft.public.windowsxp.general)
  • Re: Absolute hyperlink path
    ... bug in the hyperlink mechanism. ... It depends on how you insert the hyperlink, ... Target in Folder B ... insertion of ³Desktop² or some other folder. ...
    (microsoft.public.mac.office.word)
  • Re: VSTS bug?
    ... > I think i've found a very annoying bug in VSTS. ... > If you create a new solution and then create a new solution folder. ...
    (microsoft.public.vsnet.general)