Copy file to Folder using Powershell.. RRS feed

  • General discussion

  • HI,

    I have a Problem. I have almost 50000 files (.txt, .pdf, . csv)etc . All the files has specific name like ( Customer.txt, car.txt, Customer.pdf). And i have also 50000 folder named like file name (Customer, Car, House) etc. Now how can i copy those files to specific folder eg (Customer.txt & pdf to Customer folder ) and (Car.txt &.pdf to Car folder) and so on. is any powershell command to copy all the files to specific folder compare to file name.  If anyone can help then it would be bit easier.

    Thanks to all

    AArif Chowdhury

    Monday, February 11, 2019 9:24 AM

All replies