checking whether the folder is readonly or not using VB6.0
-
hi there, i am trying to check whether the existed folder on disk is readonly or not using vb6.0, i hav done successfuly in case of file i.e. GETATTR("path of foldr) " and vbReadonly but it is nt working in case of folder. Please help me out Thanks in advance
i m faisal
-
hi there, i am trying to check whether the existed folder on disk is readonly or not using vb6.0, i hav done successfuly in case of file i.e. GETATTR("path of foldr) " and vbReadonly but it is nt working in case of folder. Please help me out Thanks in advance
i m faisal
Without seeing the code you used, it's impossible to tell you where you went wrong. But, you can easily do this with the FileSystemObject and it's Folder object. Though, I have to question your motivations for using the attributes of a folder. If you're looking to see if the user can create a file in the folder, checking the ReadOnly attribute is not the way to go, since it does not consider the users NTFS permissions.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008