DIRECTORY() and ShellExecute()
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
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)
![Shocked :shock:](./images/smilies/icon_eek.gif)
--
does DIRECTORY() return UNICODE or ANSI or OEM
![Question :?:](./images/smilies/icon_question.gif)
do i use ShellExecute() wrong
![Question :?:](./images/smilies/icon_question.gif)
total confuse ...