Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default 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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
File attributes Alan Excel Programming 6 January 8th 08 03:38 PM
Data value display attributes linked to table attributes MDT at Paragon Home Inspections, LLC Charts and Charting in Excel 0 November 15th 06 12:53 AM
Getting NTFS file attributes Kiran Excel Discussion (Misc queries) 1 August 4th 05 08:13 PM
File Attributes [email protected] Excel Programming 5 March 29th 05 05:06 PM
File Attributes dsti3 Excel Discussion (Misc queries) 1 February 10th 05 05:51 AM


All times are GMT +1. The time now is 08:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"