TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Yves Corriveau
1.7k
8
510
Copy to Directory not working correctly
Jan 19 2021 6:15 PM
I have a file cope command in my app when I use the folderBrowserDialog an select a folder it copies the file to rhe wrong dir and add the dir path to the filename i.e \gcmfg\dir testFilename, I have looked aroun and have found nothing hope some one has an idea ,code below.
String folderpath="Null";
FolderBrowserDialog folderBrowserDilog1= new FolderBrowserDialog();
If folderBrowserDialog1.ShowDialog()==DialogResult.OK()
folderpath=folerBrowserDialog1.SelectPath();
MessageBox.Show (folderpath) ; This Shows the path correctly
File.Copy ("C:\\users\gcmfg\\Downloads\\Documents\\65 Cluch Rods.jpg",folderpath+"65 Cluch rod.jpg";
It copies in dir \gcmfg\dir test65cluchrods.jpg when folder select is \gcmfg\dir test.
would appreciate any help.
Thank You
Gene
Reply
Answers (
3
)
What is command for text concatination?
How to read mastercard ipm file in c#.please can any body tell me?