mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2005
Posts: 41
S
swgiant Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 41
I would like to retrieve the DLL or EXE files version, so is there a way for me to do such a task?

Joined: Apr 2004
Posts: 759
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
Try this
smile


$maybe
Joined: Jan 2005
Posts: 41
S
swgiant Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 41
thanks for the link... but it seems quite complicated for me to understand... all i need is a key command to use to retrieve the files version.

Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Maybe this will suit your purpose...
Code:
alias getversion {
  var %s = S $+ $ticks,%a
  .comopen %s Scripting.FileSystemObject
  if !$comerr && $com(%s,GetFileVersion,3,bstr,$1-) { var %a = $com(%s).result }
  .comclose %s
  return %a
}

//if $getversion(C:\windows\system32\shell32.dll) { echo -a $v1 }

Joined: Jan 2005
Posts: 41
S
swgiant Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 41
Thanks for your code.... And i want to know more about COM. Why use Scripting.FileSystemObject, MSScriptControl.ScriptControl or Shell shell.application? can i use others? And how do i know it is the syntax for the name that i must use for specific task?

Is it i must learn from the REAL programming so i can master COM comand? any tutorials for it?


Link Copied to Clipboard