Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
4
Answers
coping file from one path to another
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Tito Onowu
10y
863
1
Reply
Hello teachers and friends. I was trying to copy a file from my desk top to a location on my computer but got an error. The given path format is not supported.
Thanks.
FileInfo sm = new FileInfo(@"C:\Users\Totiruzi\Desktop\English to Russian.txt");
sm.CopyTo(Environment.GetFolderPath(Environment.SpecialFolder.SendTo)+@"G:\English to Russian.txt");
Console.WriteLine("Has English to Russian been copied to G?");
Console.ReadKey();
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
pass Dropdownlist text from one method to another method
what is the use of Delegates and why it is use of delegates