|
|
#1 |
|
Junior Member
Join Date: Jul 2002
Location: Rome - Italy
Posts: 4
|
SetFileAttributes
Hi all,
I am not getting the expeted result while running the following script line: SetFileAttributes '$INSTDIR\data\*.*' Normal This folder and its files are being copied from a CD as Read-only attribute marked and I am trying to remove it but it seams the wildcards does not work properly. If I specify an individual file it works... I was wondering if it was a bug. Hendri (Smile2Me) has provided a script to workaround it and suggest me to post it... Thanks in advance. |
|
|
|
|
|
#2 |
|
Guest
Posts: n/a
|
So is the behavior of SetFileAttributes (*.* does not work) indended or is it a bug? I expect the latter.
As a workaround, here's a small script with demo. Have fun with it, greetz, -Hendri. |
|
|
|
#3 |
|
Junior Member
Join Date: Jul 2002
Location: Rome - Italy
Posts: 4
|
Okay Smile2Me,
The script works. Thanks once again for you help. Regards. |
|
|
|
|
|
#4 |
|
Guest
Posts: n/a
|
You're welcome
.Greetz, -Hendri. |
|
|
|
#5 |
|
Junior Member
Join Date: Jul 2002
Location: Rome - Italy
Posts: 4
|
Grazie !!!!
(Thanks in Italian) |
|
|
|
|
|
#6 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
It is not a NSIS bug. It is just the behavior of SetFileAttributes.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Jul 2002
Location: Rome - Italy
Posts: 4
|
Suggestion
Okay Kichik,
In this case I would suggest to change the documentation that says: "Sets the file attributes of 'filename' (which can contain wildcards)..." That was exactelly what I was trying... change attributes using wildcards... It will avoid in the future this sort of miss understanding. Regards. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|