You'll need to parse the folder name, and then check and create each of the parts.
E.g. break apart C:\temp\email into C:\temp and C:\temp\email, then first check if C:\temp exists, and if necessary create it.
Don't know about setting permissions. It will inherit settings of the base folder, so if that's enough for you, set the settings on the parent (e.g. on C:\temp; setting it on c:\ doesn't sound like a good idea to me).
There may be third party controls that allow you to set permissions though.....
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
Fun For Me by
Moloko (Track 1 from the album:
Do You Like My Tight Sweater?)
What's This?