Backup sql file using vb6 code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Coke
    New Member
    • Jun 2012
    • 1

    Backup sql file using vb6 code

    The code below is my code to backup access file using vb6.0. How can i backup .sql file using vb6.0. Please easier code like this to understand clearly.


    Code:
    Dim Source, Destination As String
    Source = App.Path & "\db_registrar.mdb"
        Destination = App.Path & "\Backup\" & Format(Date, "mmmm_dd_yyyy") & "" & Format(Time, "h_mm_ss") & ".mdb"
        FileCopy Source, Destination
       
        MsgBox " Backup!", vbInformation, ""
    Last edited by Rabbit; Jun 13 '12, 03:00 PM. Reason: Please use code tags when posting code.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Please use code tags when posting code.

    Do the same thing... just change the path.

    Comment

    Working...