如何将.csv文件从一个系统(PC)传输到其他系统?使用c#。 [英] How to transfer .csv file from one system (PC) to other system? using c#.

查看:82
本文介绍了如何将.csv文件从一个系统(PC)传输到其他系统?使用c#。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将.csv文件从一台计算机转移到另一台计算机。使用c#,我用google搜索它,但是得到任何解决方案。



所以请帮我解决这个问题。



谢谢

Sushil Bhat。

I want to transfer .csv file from One Computer to another Computer. using c#, I googled it it but dint get any solution.

So please help me to solve this problem.

thank you
Sushil Bhat.

推荐答案

您可以传输如下文件。



You can transfer files like below.

File.Copy(SourceFile, DestinationFile);





DestinationFile应该使用统一命名约定



请阅读此处关于统一命名约定



但您应该有适当的访问权限和授权来复制文件。



希望这会有效。



DestinationFile should be with Uniform Naming Convention

Read here about Uniform Naming Convention

But you should have proper access and authorization to copy the files.

Hope this will work.


这篇关于如何将.csv文件从一个系统(PC)传输到其他系统?使用c#。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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