C# 如何将VFPOLEDB文件类型转换为dbase III?

C# 如何将VFPOLEDB文件类型转换为dbase III?,c#,dbf,C#,Dbf,我想知道如何将dbf文件类型VFPOLEDB转换为dbase III byte[] bytes = System.IO.File.ReadAllBytes(path + "MyFile.dbf"); bytes[0] = 3; File.WriteAllBytes(path + "my.dbf", bytes); 在arcmap中打开时未打开字符串连接字符串=@“Provider=VFPOLEDB.1;数据Source=C:\YourDirectory\” using (OleDbCo

我想知道如何将dbf文件类型
VFPOLEDB
转换为
dbase III

 byte[] bytes = System.IO.File.ReadAllBytes(path + "MyFile.dbf"); 
 bytes[0] = 3;
 File.WriteAllBytes(path + "my.dbf", bytes);

在arcmap中打开时未打开

字符串连接字符串=@“Provider=VFPOLEDB.1;数据Source=C:\YourDirectory\”

using (OleDbConnection connection = new OleDbConnection(connectionString)) 
{ 
    using (OleDbCommand scriptCommand = connection.CreateCommand()) 
    { 
        connection.Open(); 

        string vfpScript = @"USE TestDBF 
                             COPY TO OldDBaseFormatFile TYPE Fox2x 
                            USE"; 

        scriptCommand.CommandType = CommandType.StoredProcedure; 
        scriptCommand.CommandText = "ExecScript"; 
        scriptCommand.Parameters.Add("myScript", OleDbType.Char).Value = vfpScript; 
        scriptCommand.ExecuteNonQuery(); 
    } 
}