0
点赞
收藏
分享

微信扫一扫

[AHK]Get office version

残北 2023-04-24 阅读 40


This method uses the registry to get the path, from one of the sources that the 'Run' command would use, and then gets the version number from the exe file:



q::
vList := "chrome.exe,firefox.exe,iexplore.exe,excel.exe"
vOutput := ""
Loop, Parse, vList, % ","
{
	RegRead, vPath, HKEY_LOCAL_MACHINE, SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\%A_LoopField%
	FileGetVersion, vPVersion, % vPath
	vOutput .= vPVersion "`t" vPath "`r`n"
}
Clipboard := vOutput
MsgBox, % "done"
return




Code: [Select all] [Download]GeSHi © Codebox Plus



MsgBox, % ComObjActive("Excel.Application").Version



Application.Version Property (Outlook)


Application.Version Property (Excel)


Application.Version Property (Word)

举报

相关推荐

0 条评论