如何将文件从驱动器上复制到任何位置 [英] how to copy file from on drive to any location

查看:101
本文介绍了如何将文件从驱动器上复制到任何位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我具有浏览器控件,因此我想选择文件
之后,在下一个文本框中,我要复制的位置

解决方案

我认为这将帮助您解决问题.

 File.Copy(" " ); 



要使用上述代码段,您需要使用此命名空间

 使用 System.IO; 


I have browser control in that i want select file
after that in next textbox in which location i want to copy
after giving tat location in eant to copy a file.

解决方案

I think this will help you to solve your problem

File.Copy("your Source file path", "Your Destination file path with file name");



to use above code segment you need to use this namespace

using System.IO;


这篇关于如何将文件从驱动器上复制到任何位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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