Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

Copy-item with multiple filter

If you want all the jpg and xml files into one folder, you could use Get-ChildItem -Include:

Get-ChildItem -Include *.jpg,*.xml -Recurse | ForEach-Object { 
    Copy-Item -Path $_.FullName -Destination D:\Users\MS5253\Desktop\Lots
}

Tags:

Windows

Scripting

Powershell

Related

Unable to connect to RDS instance from outside VPC (ERROR 2003 (HY000) Can't connect to MySQL Server) Assign Public IP (not Elastic IP) after instance launched SSH sessions hang on shutdown/reboot What is the difference between Nginx variables $host, $http_host, and $server_name? Install PHP7 from Remi repo How to get a .pem file from ssh key pair? haproxy: how to prepare a server maintenance without kicking app sessions? Installing .Net 3.5 on Windows 2012 R2 Elastic Beanstalk force https How to choose the external IP address of a Kubernetes load balancer in Google Kubernetes Engine Iptables rule-set so that a docker container can access a service on a host IP How can I move an interface out of a network namespace?

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy