Here is what I need to do:
I. I am stacking directories
mkdir app.path & "\" & year
mkdir app.path & "\" & year & "\" & month
Then I am trying to wite a file to the "year" path so that I can reference it later and use it to open the month folder...
I run into problems, when attempting to add the files and directories because all my directories are created as read-only, so I get a permissions access error. (75 I think)
Is there a way in code to create a directory with out the read only attribute.
I found this online, however am not so sure what to do with it:
SetAttr strFileName, GetAttr(strFileName) And (Not vbReadOnly)Needless to say I think it is only for files, if so then i create the files with out the read-only attribute, it seems that the directories are the issue.
I have also attempted:
mkdir app.path & "\directory" -r
Public Sub rem_RO(Path32 As String) 'lets see if that works ( tried Not vbReadOnly too but only got "error 5 invalid procedure"' SetAttr Path32, vbDirectory End Sub
a question, would this work, or would it be read-only?
dim FSO as new FileSystemObject FSO.CreateFile(app.path & "\" & directory)
Any help with this would be greatly appreciated,
This post has been edited by chuckjessup: 18 September 2010 - 08:17 PM