如何将图像文件从一个位置复制到另一位置 [英] how to copy the image file from one location to another

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

问题描述

请帮助我任何一个人

我想将图像从一个位置复制到另一个位置

please help me any one

i want to copy the image from one location to another

推荐答案

File.Copy(strOldFilePath, strNewFilePath, boolIsOverrite);



请检查路径必须完整且绝对,例如@"D:\ Folder1 \ InnerFolfer1 \ File1.jpg".

在路径字符串开始之前使用"@"(按速率)符号,以获取路径字符串内部的"\"(反斜杠)符号的转义序列

如果解决您的问题,则标记为答案



kindly check path must be full and absolute, like @"D:\Folder1\InnerFolfer1\File1.jpg".

use ''@'' (at the rate) sign before start of the path string, for escape sequence of the ''\'' (back slash) sign inside path string

mark as answer if solves your problem


引用该线程
http://stackoverflow.com/questions/677221/copy-folders- in-c-sharp-using-system-io [ ^ ]
Refer this thread
http://stackoverflow.com/questions/677221/copy-folders-in-c-sharp-using-system-io[^]


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

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