Skip to content

Instantly share code, notes, and snippets.

@tmplinshi
Created September 21, 2018 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmplinshi/ae2fae633489cfef28d3a86a4bfd3940 to your computer and use it in GitHub Desktop.
Save tmplinshi/ae2fae633489cfef28d3a86a4bfd3940 to your computer and use it in GitHub Desktop.
GetBitrate(FileName) {
if !InStr(FileName, ":") {
FileName := A_WorkingDir "\" FileName
}
RegExMatch(FileName, "^(.*\\)(.*)$", m)
oShell := ComObjCreate("Shell.Application")
oFolder := oShell.Namespace(m1)
return oFolder.GetDetailsOf( oFolder.Parsename(m2), 28 )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment