ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Network file attributes (https://www.excelbanter.com/excel-programming/411607-network-file-attributes.html)

Paul D Byrne.

Network file attributes
 
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.

urkec

Network file attributes
 
"Paul D Byrne." wrote:

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 he

http://msdn.microsoft.com/en-us/libr...92(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.

--
urkec


All times are GMT +1. The time now is 09:27 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com