[AccessD] Message not deliverable

Administrator administrator at it.glasgow.gov.uk
Tue Jan 28 17:25:06 CST 2003


> So I guess this issue is something OS specific (Win2000 SP2).
My OS is XP Pro., but I have also tested it (and failed) on Win2000

Hadyn

----- Original Message -----
From: "Gustav Brock" <gustav at cactus.dk>
To: "Hadyn Morgan" <AccessD at databaseadvisors.com>
Sent: Saturday, January 25, 2003 2:17 AM
Subject: Re: [AccessD] FileSystemObject


> Hi Hadyn
>
> This is weird, I don't know why it doesn't work, but it doesn't - all
> subdirs are killed but the top level dir is not and cannot be removed
> unless you do a reboot.
>
> I did a quick test applying Marty's suggestion (you'll need to remove
> FOF_FILESONLY from the or'ed flags) but this behaves the same way.
>
> So I guess this issue is something OS specific (Win2000 SP2).
> Would any guru chime in for Haydn, please?
>
> /gustav
>
>
> > This is a small sample of what I am trying to do, but it will not run
twice
> > in a row.
> > Keep getting an "Error 70: Permission denied" on second attempt.
> > FYI - CurDir() returns D:\, no other programs open.
>
> > Sub Test()
>
> >     Dim strPath As String
> >     Dim FSO As Object
>
> >     strPath = "C:\Test"
> >     If Len(Dir(strPath & "\", vbDirectory)) > 0 Then
> >         Set FSO = CreateObject("Scripting.FileSystemObject")
> >         If FSO.FolderExists(strPath) Then
> >             FSO.DeleteFolder strPath, True
> >         End If
> >         Set FSO = Nothing
> >     End If
> >     MkDir strPath
> >     MkDir strPath & "\1"
> >     MkDir strPath & "\2"
> >     MkDir strPath & "\3"
> >     MkDir strPath & "\4"
>
> > End Sub
>
> > ----- Original Message -----
> > From: "Gustav Brock" <gustav at cactus.dk>
> > To: "Hadyn Morgan" <AccessD at databaseadvisors.com>
> > Sent: Thursday, January 23, 2003 9:59 PM
> > Subject: Re: [AccessD] FileSystemObject
>
>
> >> Hi Hadyn
> >>
> >> You have probably changed your current dir to a folder you now try to
> >> delete again.
> >> You can check that with CurDir().
> >>
> >> /gustav
> >>
> >>
> >> > I have an app that creates a handful of PDF's in individual folders
> > using
> >> > the FileSystemObject.  It starts by deleting the main folder that all
> > the
> >> > other folders are in and then rebuilds it.  This works fine the first
> > time
> >> > but if the user tries to do it again it says it cannot delete the
> > folder.
> >> > The app has to be closed and reopened before it will work again
(once).
> > All
> >> > instantiated objects are destroyed, as per normal.  Any ideas?
> >>
> >> This list sponsored by Database Advisors Inc., a worldwide association
of
> > database developers.
> >> Visit http://www.DatabaseAdvisors.com, the database developers' list
> > portal and support site.
> >>
>
>
> > This list sponsored by Database Advisors Inc., a worldwide association
of database developers.
> > Visit http://www.DatabaseAdvisors.com, the database developers' list
portal and support site.
>
> This list sponsored by Database Advisors Inc., a worldwide association of
database developers.
> Visit http://www.DatabaseAdvisors.com, the database developers' list
portal and support site.
>


_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd



More information about the AccessD mailing list