HWID serial numbers.

By L4roXyL on Nov 10, 2011

Serial numbers of the drivers to learn.
Use: /_hdd

alias _hdd {
  $iif($com(dv),.comclose dv)
  $iif($com(dv2),.comclose dv2)
  var %s
  .comopen dv Scripting.FileSystemObject
  if ($comerr) return 
  noop $com(dv,drives,3,dispatch * dv2)
  .comclose dv
  if ($com(dv2)) {
    %s = 1
    :..
    !echo -: $$comval(dv2,%s,path) $$comval(dv2,%s,serialnumber)
    inc %s
    goto ..
  }
}

Comments

Sign in to comment.
Frenetic   -  Nov 15, 2011

Works on my virtual box on Windows XP, must be newer windows versions have it differently.

 Respond  
Jethro   -  Nov 12, 2011

This snippet didn't work for me either, and I'm using windows Vista. I also tested on my other PC with Windows 7, and nothing gets shown or displayed upon execution.

 Respond  
_Dean_   -  Nov 12, 2011

L4roXyL for me it didnt return nothing

 Respond  
Jethro   -  Nov 12, 2011

SReject: Thanks for makin it more enjoyfull for u.There is no such word as "enjoyfull" but enjoyable. Pardon me for being off-topic.

 Respond  
Frenetic   -  Nov 12, 2011

HWID uniquely identifies your computer, it's what programmers use to secure their program IE;

 if (HWID1 != HWIDinfile) exit 

lol

 Respond  
Frenetic   -  Nov 12, 2011

Pball, HWID serial, Hardware-ID serial. lol

 Respond  
pball   -  Nov 12, 2011

I'll disagree that the purpose is clear, the title has serial numbers in it. Which leads me to believe it'd return the serial numbers of my drives, but that's not what it returns. Is it some other type of serial number, since when I hear serial number I think of the unique number that identifies my physical hard drives.

SReject I get the following error from your code

  • Error: * Invalid parameters: $com (line 8, events.ini)
 Respond  
L4roXyL   -  Nov 12, 2011

Dean: It does.

pball: Code already gives the drivers like how many you have. for the explanation , there's nothing to explain, it's very simple code. I already wrote this code for a request by someone and I tought maybe someone would like to use it then I shared it. For the using code, you just have to " /_hdd " that's all.

Frenetic: This code could be usefull for anyone, also could be needed importantly. Maybe it does means nothings for you but, someone can use also love it anyway. Also, it can be workfull for using mirc with same people. Anyway thanks for this, such a un-identified comment.

SReject: Thanks for makin it more enjoyfull for u.

 Respond  
SReject   -  Nov 11, 2011

My version:

alias _hdd {
  var %e, %b = 1

  .comopen dv Scripting.FileSystemObject
  if ($comerr) {
    %e = Unable to create a FileSystemObject
  }
  elseif (!$com(dv,drives,3,dispatch * dv2)) {
    %e = Unable to get drives from FileSystemObject
  }
  elseif ($com(dv2)) {
    while ($comval(dv2,%b,path) $comval(dv2,%b,serialnumber) != $chr(32)) {
      !echo -: $v1
      inc %b
    }
  }
  else {
    %e = No drives found.
  }

  :error
  if ($com(dv)) .comclose $v1
  if ($com(dv2)) .comclose $v1
  if ($iif(%e,$v1,$error)) {
    !echo - Error: $v1
    reseterror
  }  
}
 Respond  
Frenetic   -  Nov 11, 2011

Why would anyone need this? lol I mean it could be useful, but doubt it to the average mIRC user. Nice snippet though, none the less. well done. :)

 Respond  
pball   -  Nov 11, 2011

I got results for all of my drives, however none are serial numbers. Also it returns c:\ and d:\ which are partitions of a single drive so that is weird if it's supposed to return serial numbers. Also I'll say again the explanation of the script isn't that good I feel.

 Respond  
_Dean_   -  Nov 10, 2011

it didnt return nothing...

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.