如何将文件从phycal路径复制到项目文件夹中 [英] how to copy the file from phycal path into project folder

查看:251
本文介绍了如何将文件从phycal路径复制到项目文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个物理路径为C:\Desktop\finame.doc我需要上传这个文件

到项目文件夹中怎么做

解决方案

例如,请参阅本教程: http://www.tutorialspoint。 com / asp.net / asp.net_file_uploading.htm [ ^ ]。



-SA


使用像这个,



 Server.MapPath(  urprojectfolder); 


i have a physical path as C:\Desktop\finame.doc i need to upload the this file
into project folder how to do it

解决方案

See, for example, this tutorial: http://www.tutorialspoint.com/asp.net/asp.net_file_uploading.htm[^].

—SA


Use some thing like this,

Server.MapPath("urprojectfolder");


这篇关于如何将文件从phycal路径复制到项目文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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