Re: File permissions
From: Roger Abell [MVP] (mvpNoSpam_at_asu.edu)
Date: Mon, 13 Dec 2004 22:54:40 -0700
While one can use scripting, a simple bat file could also do this
In the file, to define and permission the folder you need the two lines
cacls c:\windows\APW_DATA /e /t /g users:c
If the application is happy as long as this directory pre-exists with
the loose permissions for Users, and does not insist on redefining
the already existing folder, then you only need to run this once when
logged in as an admin.
-- Roger Abell Microsoft MVP (Windows Server System: Security) MCDBA, MCSE W2k3+W2k+Nt4 "wayne iddins" <wayne firstname.lastname@example.org> wrote in message news:96F86CF4-2D8C-49F6-9E1E-6323B76FEDF3@microsoft.com... >I have a very old software package that is to be used on 30 lab machines. > This is an old authorware 2.1 presentation. When the package is run it > creates a directory APW_DATA in the c:\windows directory. not only does > this > directory have to be there the user running the application must have read > and write permissions to this directory. Becuase users only get read > permissions by default I have to manually change the permissions on this > folder for users to be able to use the software. I want to know if there > is > a way that I can automate this process. What I have in mind is writing a > script that will 1) add a shortcut to the start menu 2) create the > APW_DATA > folder with read write permissions for all users. I have been unable to > figure out how to create or copy APW_DATA with the correct permissions. > Is > this possable and how can I do it. Thanks in advance.