0

I am using saveFileDialog1 and are trying to recognice what path that was selected when "Save" the file. I have begun some code below but are not sure what and if
I will write something after saveFileDialog1-> ?

//Get The Path that was selected when saving the file

String^ GetSelectedPath;

GetSelectedPath = saveFileDialog1-> ?

MessageBox::Show(GetSelectedPath);
2
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by Jennifer84
0

I did found it out:

GetSelectedPath = saveFileDialog1->FileName->ToString();
0

If I have this path:

std::string path1 = "C:\\File1.txt";

and now want to Copy this File1 to another location and switch name:

std::string path2 = "C:\\Folder\\File2.txt";

So what did happened is that I Copied File1 to another location and also changed the name to File2.
What approach could be used to do something like this ?

0

Thank you !

If you need to copy a file, you can use System::IO::File::Copy()

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.