DIM fs{lStructSize%, hwndOwner%, hInstance%, lpstrFilter%, \
\ lpstrCustomFilter%, nMaxCustFilter%, nFilterIndex%, \
\ lpstrFile%, nMaxFile%, lpstrFileTitle%, \
\ nMaxFileTitle%, lpstrInitialDir%, lpstrTitle%, \
\ flags%, nFileOffset{l&,h&}, nFileExtension{l&,h&}, \
\ lpstrDefExt%, lCustData%, lpfnHook%, lpTemplateName%}
DIM fp% 255
InitialDir$ = "C:\___SOMEWHERE___"+CHR$0 : REM Change here ...................
FileFilter$ = "*:*"+CHR$0+CHR$0
fs.lStructSize% = DIM(fs{})
fs.hwndOwner% = @hwnd%
fs.lpstrFilter% = !^FileFilter$
fs.lpstrFile% = fp%
fs.nMaxFile% = 256
fs.lpstrInitialDir% = !^InitialDir$
fs.flags% = 6
SearchDir$="C:\Windows\System32\"
F%=OPENIN(SearchDir$+"*.xml")
IF F%=0 ERROR 100,"File not found."
Line1$=GET$#F%
CLOSE#F%
PRINT "This program is stored in: "+@dir$
PRINT "First line in the chosen XML was: '"+Line1$+"'"
END
......
REM Get absolute path to working folder.
DIM cd% 255
SYS "GetCurrentDirectory", 256, cd%
PRINT $$cd%
REM Show Open File dialogue box relative to it...
F% = OPENIN($$cd%+"\DATA\*.*")
......