如何通过localhost url将文件从一个文件夹导出到另一个文件夹 [英] How to export a file from one folder to another folder by localhost url

查看:71
本文介绍了如何通过localhost url将文件从一个文件夹导出到另一个文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..

我使用网络应用程序并在我的C驱动器中的Import文件夹中有一个文件,并且在同一个驱动器中有一个名为Export的空文件夹。如何在Web配置文件中设置路径,单击导出按钮时,文件移动到导出文件夹与本地主机URL ...指导很快

解决方案

使用Server.MapPath (URL)获取物理路径,然后从源目的地移动它。



希望它有帮助

标记答案如果有帮助。

Hi..
Iam using web application and having a file inside Import folder in my C drive and having empty folder called Export in the same drive. How to set path in web config file that while export button is clicked,file moved to export folder with local host url...guide soon

解决方案

use Server.MapPath("URL") to get physical path then move it from source ot destination.

hope it helps
mark answer if helped.


这篇关于如何通过localhost url将文件从一个文件夹导出到另一个文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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