Archive: How to set the attribute of list of files before copying


How to set the attribute of list of files before copying
Hi all,

My question is

I want to copy a list of files from one directory to system directory, but the copied files attribute should be always NORMAL, how can I set the copying file attributes as NORMAL.
I am using the syntax
CopyFile "$CurrentDir\*.inf" "$WINDIR\inf"

And the "SetFileAttributes" syntax is only for setting one file attribute at a time.

So as I think first I have to list out all the files from the source dir and than set their attributes as NORMAL and than copy those into destination directory, but if this is the case how can I list out all the files from the source directory.

Thanks
Venu


Continuing my earlier question...

Can anyone tell me is there any way to get the file names, if I am copying files using wild characters:

As:
CopyFiles "SourcePath\*.*" "DestPath",

here, is there any way to get the name of files which is getting copied in 'DestPath', actually I have to set the attribute to all these files as NORMAL in the DestPath. And I can't modify the attributes of files in SourcePath, cauz SourcePath is a CD-Drive.

Please help me out.

Regards
Venu


See:

http://nsis.sourceforge.net/archive/....php?pageid=58

You can easily add CopyFiles on top of that.