[AccessD] Creating Subdirectories

Max Wanadoo max.wanadoo at gmail.com
Sun Oct 19 11:55:56 CDT 2008


Tony, maybe I am  getting the wrong end of the stick.
If you want to create a dir, then do so.  If the dir already exists, then
just trap the error and move on -job done!  Why are you trying to delete it
if you intend to create it  again??
I don't really understand what you are trying to do, so I will just drop
out.

Max


-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav
Sent: 19 October 2008 16:49
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Creating Subdirectories

Hey Max
DoEvents did something because now I am getting "Cannot delete folder: 
Access is denied"

Max Wanadoo wrote:

>Try sticking a DEEVENTS in there.
>That will release the processing to the OS to do whatever it needs and then
>come back to you.
>
>Max
>
>
>-----Original Message-----
>From: accessd-bounces at databaseadvisors.com
>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav
>Sent: 19 October 2008 16:02
>To: Access Developers discussion and problem solving
>Subject: [AccessD] Creating Subdirectories
>
>Hey All
>Thanks to all of you that responded. Yesterday was a "tired brain day". 
>This morning I built a little routine using MKDIR  to check and create 
>the necessary subdirectories. I check first to see if the drive exists. 
>Incorporated Jurgen's idea to check to see if the folder/directory was 
>created  (rights issue).
>One little glitch is if I try to delete the folder immediately after 
>creating it, I get a message "Cannot delete folder. It is being used by 
>another person or program". I have to exit Access and then I can delete it.
>
>Thanks again
>  
>

-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com




More information about the AccessD mailing list