SaveFileDialog setting default path and file type?

前端 未结 3 1525
遇见更好的自我
遇见更好的自我 2020-12-01 07:36

I\'m using SaveFileDialog.SaveFile. How can I get it to the default (operating system) drive letter and also limit the options to show only .BIN as

3条回答
  •  暖寄归人
    2020-12-01 08:07

    Environment.GetSystemVariable("%SystemDrive%"); will provide the drive OS installed, and you can set filters to savedialog Obtain file path of C# save dialog box

提交回复
热议问题