DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Re: Deleting a document within a folder

  1. #1
    Debi Ives Guest

    Re: Deleting a document within a folder


    I have processed a document and now I want to remove it from its folder can
    you help? Thanks in advance

  2. #2
    Shailesh Shah Guest

    Re: Deleting a document within a folder

    "Kill" it.
    "Debi Ives" <Debi@FrankBDehn.co.uk> wrote in message
    news:3c14a7b0$1@147.208.176.211...
    >
    > I have processed a document and now I want to remove it from its folder

    can
    > you help? Thanks in advance




  3. #3
    Rick Guest

    Re: Deleting a document within a folder



    Debi -

    Set a reference to Microsoft Scription Runtime.
    Use the File System Object _something_ like this:

    Public Function DataFileExists(ByRef strDataPath As String) As Boolean

    'Setup the file system object
    Dim fso As New FileSystemObject

    'Check the existance of the file
    If fso.FileExists(strDataPath) = False Then
    DataFileExists = False
    Else
    DataFileExists = True

    'You could add code to delete the file here, like...
    fso.DeleteFile(strDataPath)


    End If

    'Cleanup
    Set fso = Nothing

    End Function


    Best of Luck

    Rick




    "Debi Ives" <Debi@FrankBDehn.co.uk> wrote:
    >
    >I have processed a document and now I want to remove it from its folder

    can
    >you help? Thanks in advance



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center