Click here to Skip to main content
15,883,904 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
please help me any one

i want to copy the image from one location to another
Posted

C#
File.Copy(strOldFilePath, strNewFilePath, boolIsOverrite);


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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900