본문 바로가기
자바스크립트(js)

MAC주소 얻기

by 리틀홍콩 2015. 8. 11.
728x90

자바스크립트에서 MAC주소 얻기

 

Active X를 통해 정보를 읽어올 수 있다.

 

 

version=1,0,0,4

웹페이지에서 클라이언트 컴퓨터의 몇 가지 정보를 구하는 ActiveX 컨트롤입니다.

기능:맥어드레스, 컴퓨터 이름, 워크그룹, 아이피 주소, 드라이브 리스트, CPUVendor, CPUID, HDDID, 윈도우 버전, WSH(Windows Scripting Host) 버전, 파일 버전 등…

 

Method
—————————————————————-
function GetDriveLetter(): string;
function GetDiskVolume(const cDisk: string): string;
function FileExists(const FileName: string): WordBool;
function DirectoryExists(const path: string): WordBool;
function GetWindowsDirectory(): string;
function GetSystemDirectory(): string;
function GetBootDirectory(): string;
function GetTempDirectory(): string;
function GetProgramFilesDirectory(): string;
function GetFileSize(const FileName: string): Integer;
function GetWSHVersion(): string;
function GetFileVersion(const FileName: string): string;
procedure About();
function GetWindowsVersion(): string;

 

Property
—————————————————————-
property CPUID: string;
property CPUVendor: string;
property CPUType: string;
property CPUFamily: string;
property CPUModel: string;
property CPUStepping: string;
property MacAddress: string;
property ComputerName: string;
property WorkGroup: string;
property ActiveMacAddress: string;
property IP: string;
property HDDID: string;

Event
—————————————————————-
procedure OnLoaded;

 

데모 페이지:
http://isulnara.com/myAPP/iSysInfoX/demo.html

다운로드:
http://isulnara.com/myAPP/iSysInfoX/iSysInfo.CAB

주의사항:
-MacAddress 및 CPUID는 사용자에 의해 수정될 수 있으며, 고유하지 않을 수 있습니다.
–HDDID는 부트 볼륨의 고유한 ID로 디스크 포맷시 변경됩니다.
-단독으로 사용하는 것보다는 다른 정보와 함께 사용하시기 바랍니다.
-비스타는 지원하지 않습니다.

사용 권한:
OBJECT 코드에서 아래 코드를 삭제하지 않고, 이 컨트롤 자체를 판매하지 않는 이상 상용 프로그램/웹사이트에서 사용을 허용합니다.
< param name=”copyright” value=”http://isulnara.com”>
또한 이 컨트롤의 사용으로 발생하는 모든 문제는 사용자에게 있습니다.

 

 

출처 : http://isulnara.com/wp/archives/101

'자바스크립트(js)' 카테고리의 다른 글

Google Calendar API  (0) 2018.01.23
HTML에서 자바스크립트를 이용한 파라메터 주고받기  (0) 2015.12.03
숫자키만 입력하기.  (0) 2015.05.18
테이블 헤더 고정  (0) 2015.02.11
화면 구성 사이즈  (0) 2015.01.27

댓글