[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

3098.0. "How to ADD an ACE to all files in a directory" by MLNTSC::MANENTI () Tue Aug 03 1993 13:39

	Hi,
	
	the following function:

	ACL ADD/APPEND FILE, "device:[test]*.*", "*groupname", "RE"
			     ------------------
				objnam-sym
	
	does not work as expected because the ACE is only added to
	the fist file in the directory and not to ALL files.

	Looking at the documentation it seems that there're not
	restrictions about the objnam symbol.

	Have you any ideas, suggestions ? 
	
	Many many thanks in advance.

					Bye

					Graziella

	
	
T.RTitleUserPersonal
Name
DateLines
3098.1Just use FOR FILE$ loopIOSG::CHINNICKgone walkaboutWed Aug 04 1993 16:1214
    
    I would not expect ACL to handle wildcards. Maybe it isn't spelt out in
    the documentation, but I think wildcards are the exception and not the
    rule with most things in ALL-IN-1.
    
    To use ACL and put an ACE on all the files in a directory, I'd suggest
    using a FOR loop on the FILE$ data-set. Something like:
    
    FOR FILE$ WITH .SPEC EQS "disk:[directory]*.*" DO -
    	ACL ADD/APPEND FILE, .%KEY, "*groupname", "RE"
    
    That should do what you need from within a script.
    
    Paul.