cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
choir
Level 3

something similar to setfileinfo for multiple files?

Hi, I would like to remove the read-only attribute of multiple files in the same subdirectory prior to deletion. Is there something like setfileinfo, but for multiple files? I noticed that using a wildcard does not work. Thank you!
Labels (1)
0 Kudos

(3) Replies
Cary_R
Level 11

Hi There,

Without deviating from InstallScript, you would use a FindAllFiles loop to handle all the files in the folder matching a certain wildcard:

http://helpnet.acresso.com/robo/projects/installshield17langref/LangrefFindAllFiles_Example.htm

If you wanted something a lot less verbose, I think the DOS 'Attrib' command supports wildcards and setting/clearing the Read Only attribute.
0 Kudos
choir
Level 3

can you use dos commands in an installscript? Sorry, I feel like this is a basic question but I'm a newbie when it comes to scripting! thanks.
0 Kudos
choir
Level 3

just to close out this topic, I wound up using LaunchApplicationAndWait to call a batch file that handles the deletion of the read-only files. Thanks!
0 Kudos