As we know WPF OpenFileDialog
no more changes the app's working directory and RestoreDirectory
property is "unimplemented". However, upon subsequent open, its initial directory is default to the last opened file rather than the original working directory, so this information must be stored somewhere. I wonder is it possible to get/set it from user code?
相关问题
- How to import working directory for JUnit from mav
- Difference between Current Directory and Working D
- bash: What is the difference between PWD and CURDI
- Marshalling an an unmanaged array of strings from
- How to change the default working directory in pyt
相关文章
- Python: Is it possible to change the Windows comma
- Windows service - get current directory
- Setting default folder for openfile dialog
- Is it never possible to get the FullName from a fi
- How does WPF OpenFileDialog track directory of las
- Achieving the effect of changing the Java working
- When does Microsoft.Win32.OpenFileDialog.ShowDialo
- R Windows OS choose.dir() File chooser won't o
On Windows 7 the recent file information is stored in the registry at this key:
Beneath this key are subkeys for the various file extensions (e.g.,
exe
,docx
,py
, etc).Now, if you want to read these values, this will get a list of all paths stored beneath the subkeys (adapted from here):
References: