-->>Hi, here is athing I managed to write Codes that Creates a Folder for a User when Registered...
-->>The Folder takes User's registered name with some additional files inside it,works very fine...
-->>The code I used is this one:
MkDir GetAppPath() & "SPGPAC - File User Files\" & UCase(txtUserName.Text)
MkDir GetAppPath() & "SPGPAC - File User Files\" & UCase(txtUserName.Text) & "\SPGPAC - File Music"
MkDir GetAppPath() & "SPGPAC - File User Files\" & UCase(txtUserName.Text) & "\SPGPAC - File Notices"
MkDir GetAppPath() & "SPGPAC - File User Files\" & UCase(txtUserName.Text) & "\SPGPAC - File Pictures"
MkDir GetAppPath() & "SPGPAC - File User Files\" & UCase(txtUserName.Text) & "\SPGPAC - File Videos"
MsgBox "User Name: " & txtUserName.Text & " Registered Successful.", vbOKOnly + vbInformation, "Registration Completed."
-->>Now the Problem is when the User Account is Closed (Deleted) I need His/Her Parent Folder to be Deleted...
-->>But what happens is the Folder wont delete if there are some Sub Folders or Files in it...
-->>And I get "Access denied" Error the Code I used to Delete the Parent Folder is:
RmDir GetAppPath() & "\SPGPAC - File User Files\" & USER_NAME
-->>Once I delete all Sub Folders with the same line of code I get rid of It!!!
-->>So I was wondering how can I force it Out without considering Sub Folders or Files?...
-->>And an Interesting Point to Me is the Error "Access denied" if there is a Way I can Make the Folders...
-->>Inaccessible outside the Appl I hope it 'll be usefull so that Only Access is granted upon User Login...
-->>in an Application (That is Not accessible by navigating to the Location it resides and just Click to open)
-->>That's all,any help?...