336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

mac address 에 대해서 질문좀할게요^^
SEQ : 126278 글쓴이 : dark66

작성 포맷 :TEXT 모드, 자동 줄바꿈 사용

제가 스크랩해놓은.. Mac Address 알아내는 소스.. 자알 써먹으세요. ^^;
(참고로 저도 안해봤음.. ㅎㅎ 테스트 하고 손좀 봐야 할터인데..)
내용은 Nbtstat를 이용하여 접속한 IP의 정보를 Text로 저장후 Text를 분석 

strMac = GetMACAddress(Request.ServerVariables("REMOTE_ADDR")) 

function GetMACAddress(strIP) 
Set net = Server.CreateObject("wscript.network") 
Set sh = Server.CreateObject("wscript.shell") 

sh.run "%comspec% /c nbtstat -A " & strIP & " > c:\" & strIP & ".txt",0,true 

Set sh = nothing 

Set fso = createobject("scripting.filesystemobject") 
Set ts = fso.opentextfile("c:\" & strIP & ".txt") 

macaddress = null 
Do While Not ts.AtEndOfStream 
   data = ucase(trim(ts.readline)) 
   if instr(data,"MAC ADDRESS") Then 
     macaddress = trim(split(data,"=")(1)) 
     Exit Do 
   End if 
loop 
ts.close 
Set ts = nothing 
fso.deletefile "c:\" & strIP & ".txt" 
Set fso = nothing 
GetMACAddress = macaddress 
End function 
mac address 에 대해서 질문좀할게요^^
SEQ : 126278 글쓴이 : dark66

작성 포맷 :TEXT 모드, 자동 줄바꿈 사용

제가 스크랩해놓은.. Mac Address 알아내는 소스.. 자알 써먹으세요. ^^;
(참고로 저도 안해봤음.. ㅎㅎ 테스트 하고 손좀 봐야 할터인데..)
내용은 Nbtstat를 이용하여 접속한 IP의 정보를 Text로 저장후 Text를 분석 

strMac = GetMACAddress(Request.ServerVariables("REMOTE_ADDR")) 

function GetMACAddress(strIP) 
Set net = Server.CreateObject("wscript.network") 
Set sh = Server.CreateObject("wscript.shell") 

sh.run "%comspec% /c nbtstat -A " & strIP & " > c:\" & strIP & ".txt",0,true 

Set sh = nothing 

Set fso = createobject("scripting.filesystemobject") 
Set ts = fso.opentextfile("c:\" & strIP & ".txt") 

macaddress = null 
Do While Not ts.AtEndOfStream 
   data = ucase(trim(ts.readline)) 
   if instr(data,"MAC ADDRESS") Then 
     macaddress = trim(split(data,"=")(1)) 
     Exit Do 
   End if 
loop 
ts.close 
Set ts = nothing 
fso.deletefile "c:\" & strIP & ".txt" 
Set fso = nothing 
GetMACAddress = macaddress 
End function 

http://www.taeyo.pe.kr/Forum/Content.aspx?SEQ=126278&TBL=ASP

 

제가 스크랩해놓은.. Mac Address 알아내는 소스.. 자알 써먹으세요. ^^;
(참고로 저도 안해봤음.. ㅎㅎ 테스트 하고 손좀 봐야 할터인데..)
내용은 Nbtstat를 이용하여 접속한 IP의 정보를 Text로 저장후 Text를 분석

strMac = GetMACAddress(Request.ServerVariables("REMOTE_ADDR"))

function GetMACAddress(strIP)
Set net = Server.CreateObject("wscript.network")
Set sh = Server.CreateObject("wscript.shell")

sh.run "%comspec% /c nbtstat -A " & strIP & " > c:\" & strIP & ".txt",0,true

Set sh = nothing

Set fso = createobject("scripting.filesystemobject")
Set ts = fso.opentextfile("c:\" & strIP & ".txt")

macaddress = null
Do While Not ts.AtEndOfStream
   data = ucase(trim(ts.readline))
   if instr(data,"MAC ADDRESS") Then
     macaddress = trim(split(data,"=")(1))
     Exit Do
   End if
loop
ts.close
Set ts = nothing
fso.deletefile "c:\" & strIP & ".txt"
Set fso = nothing
GetMACAddress = macaddress
End function 

Posted by 당양부부34
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

MSSQL MS 에서 

 

변경 내용을 저장할 수 없습니다. 변경 내용을 적용하려면 다음 테이블을 삭제하고 다시 만들어야 합니다. 다시 만들 수 없는 테이블을 변경했거나 [테이블을 다시 만들어야 하는 변경 내용 저장 사용 안 함] 옵션을 설정했습니다.

 

발생시

 

[테이블을 다시 만들어야 하는 변경 내용 저장 사용 안 함] 옵션이 어디 있느냐..

 

그것은 바로

 

MSSQL Management Studio → 도구 → 옵션 → Designers → 테이블 및 데이터베이스 디자이너 → 테이블을 다시 만들어야 하는 변경 내용 저장 안 함

 

체크를 풀어주면 된다.

Posted by 당양부부34
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

IIS를 구성하던중 아래와 같은 메시지가 발생되었다...

HTTP 오류 500.21 - Internal Server Error

"PageHandlerFactory-Integrated" 처리기의 모듈 목록에 잘못된 모듈 "ManagedPipelineHandler"이(가) 있습니다.


문제발생 원인 : ASP.NET 이 IIS에 등록이 되지 않아서 문제가 발생하게 된것...

등록 방법 2가지

1) Visual Studio가 설치 되어 있지 않는 상황 :
명령어 프롬프트를 열고 아래 경로로 가면 버전별로 있음. 확인필요

C:\Windows\Microsoft.NET\Framework\v4.0.30319 이렇게 들어가서

aspnet_regiis.exe -i 라고 치면 문제 해결

2) Visual Studio가 설치 되어 있는 경우 :
Visual Studio 2010에 보면 Visual Studio 명령 프롬프트가 있는는데
실행시키고 aspnet_regiis.exe -i 라고 치면 문제 해결

 

'IT' 카테고리의 다른 글

IIS 7.0 에서 임의 폴더 서비스 제외.  (0) 2013.07.02
ASP MAC Address 알아내기 FROM TAEYO.NET.  (0) 2013.06.18
SVN Hook command  (0) 2013.05.30
암호화/복호화 Component  (0) 2013.05.15
Visual SVN Server & tortoise SVN Client  (0) 2013.05.13
Posted by 당양부부34

블로그 이미지
주요 토렌트를 블로깅하고 있습니다. 토렌트 순위 등은 다른 사이트를 찾아보세요. 주요 웹툰 순위도 게재했어요 경제를 좋아하는 일산의 행복한 프로그래머입니다.
당양부부34
Yesterday
Today
Total

달력

 « |  » 2024.4
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함