var
  s: 
array [0..MAX_PATH] of char;
begin
  ExpandEnvironmentStrings(
'%SystemRoot%\System32\$winnt$.inf', s, MAX_PATH);
  ShowMessage(s);
  
//执行结果:s = C:\WINDOWS\System32\$winnt$.inf
end;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
  • 2021-11-04
  • 2022-12-23
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-23
  • 2022-02-09
  • 1970-01-01
  • 2022-01-20
相关资源
相似解决方案