Microsoft MVP성태의 닷넷 이야기
IP 변경하는 NETSH 명령 [링크 복사], [링크+제목 복사],
조회: 10924
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

C:\Documents and Settings\Administrator\Desktop>netsh interface ip set address "
1394 Connection" static 10.2.8.14 255.255.255.0 10.2.8.1 1

Jia,

You Could try:

Private Sub btnRixRoad_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnRixRoad.Click
Dim RixRoad As New ProcessStartInfo()
RixRoad.FileName = "Netsh"
RixRoad.Arguments = "int ip set add name=""Local Area Connection""
source=static addr=10.109.220.254 mask=255.255.0.0 gateway=10.109.200.1
gwmetric=1"
Process.Start(RixRoad)
End Sub

This worked for me - althought im sure there is otherways of doing it.

Ta
MCN

"Jia" <jia@center.njtu.edu.cn> wrote in message
news:ONjitnhOEHA.1392@TK2MSFTNGP09.phx.gbl..
> HI
> I want to change my computer ip address for WinXP/2K in my program,
who
> can tell me? Thanks.
>
>
>
>









[최초 등록일: ]
[최종 수정일: 12/5/2004]


비밀번호

댓글 작성자
 




... 31  32  33  34  35  36  37  38  39  40  [41]  42  43  44  45  ...
NoWriterDateCnt.TitleFile(s)
160정성태4/13/200611706MS 인증서버 : 인증서 유효 기간 기본값 변경
157정성태4/13/200611172Converting a managed PDB into a XML file
158정성태4/13/200610523    답변글 [추가]: A SymWriter sample is coming...
156정성태4/13/200611542Method Call Interception (MCI) in C++
155정성태4/13/200611064Web Project Conversion Wizard
154정성태12/21/200511779Interprocess Communication Using the Running Object Table (ROT)파일 다운로드1
153정성태4/13/200611380Assembly loading failure is expensive [1]
152정성태4/13/200611804ASCX 컨트롤을 커스텀 컨트롤로 사용하는 방법.
151정성태4/13/200610713TechNet 세미나 목록
150정성태4/13/200610809SCDL Tool [2]
149정성태4/13/200610881Disk (based) Output Cache
147정성태4/13/200610741CLR Profiler for the .NET Framework 2.0
146정성태4/13/200611706Scriptomatic Version 2.0 by the Microsoft Scripting Guys
145정성태4/13/200611187Windows Server 2003 R2 [2]
144정성태4/13/200611669WTL(Windows Template Library) 7.5
143정성태4/13/200611936.NET 1.1 에서 WebService Client 의 KeepAlive = false; 설정
142정성태4/13/200611105Virtual Server 2005 R2 (x86, x64) EE 180-day Evaluation [2]
141정성태4/13/200611753.NET 표준개발 가이드와 Microsoft.Framework 공개
140정성태4/13/200610238PAINT.NET
139정성태11/30/20051122312월 세미나 행사
137정성태11/17/200510670WSE 3.0 정식 버전
162정성태4/13/200611327    답변글 [추가]: Web Service Security Guide
136정성태11/17/200510966Creating an Outlook My.Blogs Managed Code Add-in
138정성태11/24/200510408    답변글 Ceating an Outlook Business Contact Assistant Add-in with Visual Studio Tools for Office
135정성태11/16/200510746What's port 445 used for in Windows 2000/XP?파일 다운로드1
134정성태11/15/200510718Microsoft SQL Server Management Studio Express - Community Technical Preview (CTP) November 2005 [1]
... 31  32  33  34  35  36  37  38  39  40  [41]  42  43  44  45  ...