Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Chip Pearson kindly provided the following code to check read/write access
attributes for files, which works great. How do I check for file and directory permissions in an NTFS network file system? In my company network I need to check if the user has full control or at least modify permission to read/write and delete files and/or directories. Before my VBA programs try to take specific actions. ' code from C Pearson Jan 2007 Dim Attr As Long Attr = GetAttr("\\DellLapTop\MainDrive\Temp") If Attr And vbReadOnly Then Debug.Print "Folder is read-only" Else Debug.Print "Folder is read-write" End If -- Cheers Nigel |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Question about how to set file and permissions | Excel Discussion (Misc queries) | |||
file save error: the file or directory cannot be created | Excel Discussion (Misc queries) | |||
Excel should let me sort the file directory when saving a file | Excel Discussion (Misc queries) | |||
Moving a file without carrying over permissions | Excel Discussion (Misc queries) | |||
Directory checking | Excel Programming |