✅ How can I get the path where function saves files?
How can I get the path where this function saves files?I don't set it at any point, but I use WinForms.
4 Replies
According to the docs you can just read
FileNames after ShowDialog() which contains all user selected files with their full path. See https://learn.microsoft.com/de-de/dotnet/api/system.windows.forms.filedialog.filenames?view=windowsdesktop-9.0#system-windows-forms-filedialog-filenamesFileDialog.FileNames Eigenschaft (System.Windows.Forms)
Ruft die Dateinamen aller im Dialogfeld ausgewählten Dateien ab.
Yep, that's what I've always done
Looks like
OpenFile just accesses FileNames[0]: https://source.dot.net/#System.Windows.Forms/System/Windows/Forms/Dialogs/CommonDialogs/SaveFileDialog.cs,75mtreit
Directory.CurrentDirectory will tell you.Quoted by
<@1102729783969861782> from #chat (click here)
React with ❌ to remove this embed.
he was already replied in #chat so closing this...