I have to copy some files from a folder which has a nested folder structure i.e the main parent folder will have some child folders and inside these child folders there will be some files.FIles can be inside the child folder i.e 3 to 4 levels down the parent folder or the files will be 1 level.
I have to write a batch script which will extract all these *.* files to one one location with out copying the child folders.
I tried using the below script but it is not giving the correct out.
for /R C:\Premium\ %%f in (*.*) do copy %%f c:\Premium_Due
Please help me how can i do this.