Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Run notepad.exe with winexec

mcardiaMar 14 2012 — edited Mar 14 2012
Hi!

I´m trying to open a text file from forms. I´m using d2kwutil:
wpgm := win_api_environment.read_registry('HKEY_CLASSES_ROOT\txtfile\shell\open\command', null, FALSE); 
wpgm := replace(wpgm, '%1', '"'||wmy_file||'"');
win_api_shell.winexec(wpgm, WIN_API.SW_SHOWNORMAL, TRUE); 
"HKEY_CLASSES_ROOT\txtfile\shell\open\command" has this value: "notepad.exe %1"

wpgm has the correctly value: if I run ti at command prompt it works.

At Windows Task Manager, I see that a process notepad.exe appears, but the window is not visible....
Notepad is not showing.

Does anyone has any tip how to solve this?

Thanks

Forms [32 Bits] Version 6.0.8.11.3
Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
This post has been answered by InoL on Mar 14 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 11 2012
Added on Mar 14 2012
2 comments
942 views