I want to copy all .txt files which might be in sub folders or under main folder(source) to destination main folder
i.e E:\source\sub1\sub11 or E:\source\sub2 or E:\source\ to d:\test folder.
Here i want to copy only .txt files not there subfolder to destination folder.
I have tired many options suggested in this forum .I am unable to ignore sub folders.
Suppose i have .txt file in E:\source\sub1\sub11 when tired to copy.txt file to destination folder then hierarchy in destination folder will be d:\test folder\sub1\sub11
here i want to copy to main folder d:\test folder not d:\test folder\sub1\sub11
Please can any one help me here
Thanks in advance