Results 1 to 2 of 2

Thread: Backup Funktion

Threaded View

  1. #1

    Thread Starter
    Addicted Member Rally2000's Avatar
    Join Date
    Dec 2003
    Location
    Central USA
    Posts
    134

    Backup Funktion

    I’m trying to do a simple backup to a Floppy but I don’t know how to code it to where it loops until it has successfully written my file!
    I would appreciate it very much if someone could show me!
    Thanks!!!
    Here is what I have!
    VB Code:
    1. Dim result As MsgBoxResult
    2.         result = MessageBox.Show("Please Insert a Floppy Disk into Drive A:\", "Insert Floppy", MessageBoxButtons.OKCancel, MessageBoxIcon.Information)
    3.  
    4.         If result = MsgBoxResult.OK Then
    5.             Try
    6.                 System.IO.File.Delete("A:\MyFile")
    7.                 System.IO.File.Copy("C:\Program Files\My Program\My File", "A:\My File")
    8.             Catch ex As Exception
    9.                 MessageBox.Show(ex.Message, " An Error has Occurred! ")
    10.             End Try
    11.  
    12.         ElseIf result = MsgBoxResult.Cancel Then
    13.  
    14.             Exit Sub
    15.  
    16.         End If
    Last edited by Rally2000; Jan 7th, 2004 at 02:52 AM.
    Code:
    Dim R1 As Fast 
    Dim Kawasaki As crap
    Dim rash As necessary
    If Kawasaki onRoad = True Then
        R1.runoverKawasaki
    Kawasaki = rash

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width