最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp.net c# 文件 复制 移动 删除方法
时间:2022-06-25 05:04:21 编辑:袖梨 来源:一聚教程网
asp教程.net c# 文件 复制 移动 删除方法
本文章提供关于asp.net教程 c# 文件 复制 移动 删除方法的,非常简单,复制,删除文件,移动文件都只要一句就ok了,我们都是利用fso来删除文件哦。
*/
//删除文件
string delfile = server.mappath(".")+"mytextcopy.txt";
file.delete(delfile);
//移动文件
file.move(server.mappath("text.txt"), server.mappath("txt/text.txt"));
//复制文件
file.copy(server.mappath("text.txt"), server.mappath("textcopy.txt"));
相关文章
- 凯叔讲故事怎么设置消费限制 04-02
- 如何使用豆包AI中英对话 04-02
- PPT如何添加动画 04-02
- 剪映国际版如何设置简体中文 04-02
- 蓝海搜书在线书库入口在哪 04-02
- 移动云盘如何下载链接 04-02