Dim dlg As New SaveFileDialog dlg.Filter= "TXT文件|*.txt" '设置筛选器 If dlg.ShowDialog = DialogResult.Ok Then Dim ex As New Exporter ex.SourceTableName = "表A" ex.Header= False ex.FilePath = FileSys.GetParentPath(dlg.FileName) ex.NewTableName = FileSys.GetName(dlg.FileName.replace(".txt", "") ex.Format ="Delimited" ex.Export() Dim str As String = FileSys.ReadAllText(dlg.FileName, Encoding.Default) str = str.replace("""", "") FileSys.WriteAllText(dlg.FileName, str, False, Encoding.Default) End If