Network file attributes

P

Paul D Byrne.

Hi,

I have created a program that generates excel templates which need to be
deleted by anyone logging on to the networked computer. I believe the network
is a Windows 2000 NT Server.

At the moment when the excel templates are created (say in C:\Temp or Shared
Documents) only the Admin and the User Id that created them can delete them -
Users only have read and read and execute security permissions. Hence if
anyone else logs on to that PC the files cannot be overwritten and an error
occurs. I need them to be Write accessible for all users.

Is there are way to change the network security property of a file using VBA?

thanks,

Paul B.
 
U

urkec

Paul D Byrne. said:
Hi,

I have created a program that generates excel templates which need to be
deleted by anyone logging on to the networked computer. I believe the network
is a Windows 2000 NT Server.

At the moment when the excel templates are created (say in C:\Temp or Shared
Documents) only the Admin and the User Id that created them can delete them -
Users only have read and read and execute security permissions. Hence if
anyone else logs on to that PC the files cannot be overwritten and an error
occurs. I need them to be Write accessible for all users.

Is there are way to change the network security property of a file using VBA?

thanks,

Paul B.



There is sample (VBScript) code here:

http://msdn.microsoft.com/en-us/library/aa393592(VS.85).aspx

It would probably be simpler for you to use Cacls.exe:

http://support.microsoft.com/kb/135268

but maybe you should contact the administrator about the issue.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top