Public Domain tools by Wolfgang Schreiber Title : Do-For: Multiple Commands for User/Group Sets Keywords: BINDERY OBJECTS COMMAND SUPERVISOR UTILITY USERS GROUPS DO_FOR.ZIP contains 'DoForAll.EXE' and 'DoForMmb.EXE'. Those utilities allow to issue any command for a specified set of users or groups. "DoForAll User=* NCOPY xyz.doc SYS:MAIL/%ID" issues NCOPY for all users. "DoForAll Gr=W* MD f:%name" creates a subdir for each matching group. DoForMmb.EXE does a similar function for all members of a specified group. PD written and uploaded by Wolfgang Schreiber. DoForAll.EXE Utility to Run any Application for Several NetWare Objects DoForMmb.EXE Utility to Run any Application once for each Group Member These tools make administration/management of a complex network with many users much easier since commands can be executed for all or selected users. This saved me a lot of work. I hope it can save your time, too. Enjoy it. ---------------------------------------------------------------------- DoForAll.EXE Utility to Run any Application for Several NetWare Objects Programmed by Wolfgang Schreiber Function: DoForAll scans the server for objects that match the specified pattern and executes the command line for each object. The command line may include the identifier variables "%Name", "%Full_Name", and "%ID". Those will be replaced by the objects' name/Full Name/ID before the command is passed to DOS. Syntax: DoForAll [=] - "User", "Group", "Queue", "FServer" are valid ObjTpyes. - Default ObjType is "User" - Names may contain wildcards. - is a valid DOS command line. Examples: DoForAll User=* NCOPY Z:test.doc SYS:MAIL\%id (copy test.doc to all mail boxes) DoForAll User=* DIR F:\HOME\%name (show all home directory contents) DoForAll U=* IF "%Full_Name"=="" Echo %Name (display all users without full names) DoForAll Gr=W* MD F:\%name (create directories for specified groups) DoForAll Qu=DUS* NDIR SYS:SYSTEM\%id.QDR (display specified queue directories) ---------------------------------------------------------------------- DoForMmb.EXE Utility to Run an Application once for each Group Member Programmed by Wolfgang Schreiber Function: DoForMmb scans all members of the specified group and executes the command line once for each matching object. The command line may include the variable identifiers "%name", "%Full_Name", and "%id". Those will be replaced by the objects' name/Full Name/ID before the command is executed. Syntax: DoForMmb - The group name may not contain wildcards. - is a valid DOS command line. Examples: DoForMmb everyone NCOPY Z:test.doc SYS:MAIL\%id (copies test.doc to all mail boxes) DoForMmb MyGroup MD F:\%name (creates directories for group members)