PowerShell copy command

Soldato
Joined
28 Sep 2008
Posts
14,158
Location
Britain
Hi all,

I have a folder, let's call it, Django1. The tree under that might look like this:

Django1
-A
--123.txt
-B
-A
--456.txt
-Etc
-Etc
-Etc
--file.txt

Basically, I want to copy any .txt files from any directory or subfolder within Django1 to a new destination D:\TXTs\

I've tried
Code:
Copy-Item -Path C:\Django1\ -Recurse -Include *.txt -Destination D:\TXTs\

All that happens is I get returned to the PowerShell prompt and nothing copies...

Any ideas?
 
Back
Top Bottom