How do I open a file with the default text editor?

后端 未结 3 1181
盖世英雄少女心
盖世英雄少女心 2020-12-18 13:11

I want to open a *.conf file. I want to open this file with the standard Windows editor (e.g., notepad.exe).

I currently have this ShellExecute code:



        
3条回答
  •  -上瘾入骨i
    2020-12-18 13:24

    use

    ShellExecute(0, 'Open', PChar(AFile), nil, '', 1{SW_SHOWNORMAL});
    

    in Delphi DX10 this function defined in

    Winapi.ShellAPI

提交回复
热议问题