DIRECTORY() and ShellExecute()
Posted: Fri Oct 21, 2022 4:58 am
hi,
MsgInfo() show right Path+Filename
nRet is 42
this does open PRG File (with NPP++) but not TXT (with Notepad)
--
does DIRECTORY() return UNICODE or ANSI or OEM
do i use ShellExecute() wrong
total confuse ...
- Code: Select all Expand view
- aDir := DIRECTORY( cPath + "\*.*", "DHS" )
oGrid:aSource := aDir
cFile := oGrid:aSource[nRow][nCol]
IF FILE(cPath + cFile )
// open with associate App
MsgInfo( TRIM( cPath+cFile ))
nRet := ShellExecute( oWnd:hWnd, "open", CHR(34)+ TRIM( cPath+cFile ) +CHR(34) )
MsgInfo() show right Path+Filename
nRet is 42
this does open PRG File (with NPP++) but not TXT (with Notepad)
--
does DIRECTORY() return UNICODE or ANSI or OEM
do i use ShellExecute() wrong
total confuse ...