【发布时间】:2013-06-05 13:37:54
【问题描述】:
我想打开一个 *.conf 文件。我想用标准的 Windows 编辑器(例如 notepad.exe)打开这个文件。
我目前有这个 ShellExecute 代码:
var
sPath, conf: String;
begin
try
sPath := GetCurrentDir + '\conf\';
conf := 'nginx.conf';
ShellExecute(Application.Handle, 'open', PChar(conf), '', Pchar(sPath+conf), SW_SHOW);
except
ShowMessage('Invalid config path.');
end;
end;
但是什么也没发生。那么我应该改变什么?
【问题讨论】:
标签: delphi configuration-files shellexecute