Backup Utility

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • munjal
    New Member
    • Sep 2008
    • 1

    Backup Utility

    Hello frenzz m new to forums pls forgive if i offend ne1 in ne manner

    I have created a backup utility in VB.NET for MS Access backend i am using the copy method to copy the updated db to new location

    System.IO.File. Copy(DBFile, BackupFile, True)

    but the problem is it gets copied only if the file exists at the "BackupFile " location

    to overcome this problem i have created file at the location i want the backup

    System.IO.File. Create( BackupFile)


    but now when code reaches the copying procedure it returns me an error saying

    "An another process is trying acess the file "

    Pls help me frenz ......
  • cloud255
    Recognized Expert Contributor
    • Jun 2008
    • 427

    #2
    Hi there,

    Please use fill english words when posting, it makes reading your posts a lot easier.

    As for your problem, this sounds like a deadlock, another process is busy using the file when you try to access it. make sure that the backup has completed before trying to read the file.

    Also ensure that any other stream readers/writers which access that file are closed.

    Comment

    Working...