如何在C#中将包含数据从文件夹中的数据复制到另一个文件? [英] How to copy a excel file with data from a folder to another in C#?

查看:74
本文介绍了如何在C#中将包含数据从文件夹中的数据复制到另一个文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用C#将包含数据的excel文件复制到另一个文件夹?



我尝试了File.Copy方法,但只有空白的excel被移动到目标文件夹。

解决方案

请使用的代码> .I dn '  t认为使用File.Copy()时出现任何问题。文件与数据一起复制。  


How to copy a excel file with data from a folder to another in C#?

I tried the File.Copy method but only blank excel is getting moved to the destination folder.

解决方案

please share the code which you are using.I dn't think there is any problems in using File.Copy() . File is copied along with data. 


这篇关于如何在C#中将包含数据从文件夹中的数据复制到另一个文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆