FILEDIALOG "Absolute path", DefaultDir$ + "\*.log;*.txt", retVar$
FILEDIALOG "Relative path", "..\*.log;*.txt", retVar$
FILEDIALOG "Remembered", "*.log;*.txt", retVar$
|
MyDir$ = "C:\MyPath\MyDirectory" calldll #kernel32, "SetCurrentDirectoryA", MyDir$ as ptr, ret as long
call changedir DefaultDir$ end sub changedir byref dir$ dir$ = "C:\MyPath\MyDirectory" end sub
DefaultDir$ = "C:\MyPath\MyDirectory"