刘
刘芳
Unregistered / Unconfirmed
GUEST, unregistred user!
想把自己应用程序的路径加到环境变量Path中,下面的语句没有报错,可就是不生效?
if (SetEnvironmentVariable('Path', PChar(ExtractFilePath(application.ExeName)))
<> true) then
showmessage(SysErrorMessage(GetLastError()));
if (SetEnvironmentVariable('Path', PChar(ExtractFilePath(application.ExeName)))
<> true) then
showmessage(SysErrorMessage(GetLastError()));