Jump to content
Sign in to follow this  
mohammadezazi

Copy just spesific files from a folder and its subfolders

Recommended Posts

mohammadezazi

Hello

For example:

I want to copy just *.ico files from c:Windows and from its all subfolders to d:myFolder

what is the quick way? without using xcopy

And FileCopy does not do it for me.   :

Edited by mohammadezazi

Share this post


Link to post
Share on other sites
Terenz

Use >RecFileListToArray

If you have problem to use it, try the GUI Helper here


Nothing is so strong as gentleness. Nothing is so gentle as real strength

 

Share this post


Link to post
Share on other sites
stormbreaker

Terenz, I don't see how thats going to help him copying those files.

mohammadezazi, use this code:


 

FileCopy("C:\WINDOWS\*.ico", "D:\myFolder\", 9)
Edited by MKISH

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Share this post


Link to post
Share on other sites
Terenz

MKISH,

Next time read better what the OP say:

and from its all subfolders

FileCopy isn't recursive, he need to use RecFileListToArray ( or other recursive search ) and then use FileCopy using the returned array values in a For...Next loop...

Edited by Terenz

Nothing is so strong as gentleness. Nothing is so gentle as real strength

 

Share this post


Link to post
Share on other sites
mohammadezazi

Thank you. 

Thank you. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×