Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. HOW TO COPY DBF Files in VB.NET

HOW TO COPY DBF Files in VB.NET

Scheduled Pinned Locked Moved Database
helpcsharpdatabasetutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sunil880089
    wrote on last edited by
    #1

    Hello Everyone, I have one old foxpro application which is using dbf files as database. But now i want to develop a new VB.net application for the same dbf database files. when i try to read dbf files from VB.Net application at the same time foxpro application and dbf files get crashed. So anyone can help me to solve the problem? Thank you

    P P 2 Replies Last reply
    0
    • S sunil880089

      Hello Everyone, I have one old foxpro application which is using dbf files as database. But now i want to develop a new VB.net application for the same dbf database files. when i try to read dbf files from VB.Net application at the same time foxpro application and dbf files get crashed. So anyone can help me to solve the problem? Thank you

      P Offline
      P Offline
      phil o
      wrote on last edited by
      #2

      Exactly the same way you would copy any other file. What have you tried? Where are you stuck?

      while (true) {
      continue;
      }

      1 Reply Last reply
      0
      • S sunil880089

        Hello Everyone, I have one old foxpro application which is using dbf files as database. But now i want to develop a new VB.net application for the same dbf database files. when i try to read dbf files from VB.Net application at the same time foxpro application and dbf files get crashed. So anyone can help me to solve the problem? Thank you

        P Offline
        P Offline
        Patrice T
        wrote on last edited by
        #3

        Try Google your question Google > VB NET read FoxPro DBF Did you tried to use ODBC driver ?

        Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein

        S 1 Reply Last reply
        0
        • P Patrice T

          Try Google your question Google > VB NET read FoxPro DBF Did you tried to use ODBC driver ?

          Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein

          S Offline
          S Offline
          sunil880089
          wrote on last edited by
          #4

          I am using Following code to copy the DBF file from Original location to mylocation Dim di As New IO.DirectoryInfo(SourceFolderPath) Dim tempname As String Dim diar1 As IO.FileInfo() = di.GetFiles("*.DBF") Dim dra As IO.FileInfo 'list the names of all files in the specified directory For Each dra In diar1 tempname = dra.ToString Do Until FileInUse(dra.FullName) = False ''Do nothing Until File Is busy Loop ''once file become free then copy the file dra.CopyTo(destpath) Next

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups