windows - search for a folder buried in a folder and move the folder to a new destination -


I want to move the favorite folders from a folder that gets their code folder from every day to Appsense .

The text between the quotation changes

  C: \ appsensevirtual \ S. 1-5-21-220523388-2000478354-839522115-60875 \ '{647CFC75-E4C0-4F13 - 9888-C37BA083416C} '\ _Microsoft Office 2010   

I found this, but it is sometimes copied to H: (HomeDrive)

  Get-ChildItem "C: \ Appsensevirtual" -Riksha -Filter "Favorite *" - Directory | If I run it, then it is found in the PowerHell Administrator window (PowerShell 2)  
  PSC: Move- item- Destination "H: \ Favorites"   

\ Temp & gt; . \ Favorites.ps1 Get-ChildItem: A parameter can not be found that the parameter name matches the 'directory' \ temporary \ favorites.ps1: 1 character at Celsius: 76 + Get-ChildItem "C: \ Appsensevirtual" -Recurse -Filter "Favorite *" -Directory & lt; & Lt; & Lt; & Lt; | -Destination- move items "H: \ Favorites" +CategoryInfo: InvalidArgument: (:) [Get-ChildItem], ParameterBindingException + FullyQualifiedErrorId: NamedParameterNotFound, Microsoft.PowerShell.Commands.GetChildItemCommand

You have the solution: Remove - directory from your command, and -forces System & amp; Hidden folders.

  Go-ChildItem "C: \ Appsensevirtual" -Riksha -Filter "Favorite *" - Force | Move-item-exploration "H: \ Favorites"    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -