Microsoft MVP성태의 닷넷 이야기
IP 변경하는 NETSH 명령 [링크 복사], [링크+제목 복사],
조회: 12766
글쓴 사람
정성태 (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)
296정성태5/27/200615385WWF 로 만든 Tetris
294정성태5/21/200615561Session State Uses a Reader-Writer Lock
293정성태5/21/200614253Microsoft Threat Analysis & Modeling v2.0 RC1
291정성태5/18/200615596Managed Stack Explorer
289정성태5/17/200616063Microsoft ASP.NET Providers - PDF 메뉴얼
288정성태5/17/200616465TFS Administration Tool 1.0 Released...with Shared Source!
287정성태5/17/200615539An Introduction to 64-bit Installers with Visual Studio 2005: Part 1
283정성태5/15/200616061Windows Workflow Foundation: Running Service Activated Workflows on Windows Vista and IIS7
284정성태5/15/200616234    답변글 Windows Workflow Foundation: Exposing Workflows as Services [1]
281정성태5/12/200614849Microsoft Compute Cluster Pack SDK
280정성태5/11/200619008C# 3.0 : One-Step Object Creation and Initialization
279정성태5/11/200617058Vista에서 제거되는 DHTML Editing Control
278정성태5/11/200615152LINQ CTP - May 2006
286정성태5/16/200614766    답변글 Using LINQ with ASP.NET (Part 1)
277정성태5/9/200614888Web Application Projects - 정식 릴리스
276정성태5/8/200615242SNK 파일 공유하기파일 다운로드1
275정성태5/8/200615004Building Security Awareness in .NET Assemblies
274정성태5/7/200614891QuickSYS파일 다운로드2
273정성태5/7/200615293Developing Firewalls for Windows 2000/XP파일 다운로드1
272정성태5/6/200617295Windows PowerShell [3]
292정성태5/19/200615399    답변글 Windows PowerShell - PowerShell Script to Create a WorkItem
271정성태5/6/200615650MSBee
282정성태5/15/200615471    답변글 MSBee will be on CodePlex
290정성태5/18/200616007    답변글 MSBuild Extras - Toolkit for .NET 1.1 "MSBee"
270정성태5/4/200615792ISO Recorder
269정성태5/4/200615646Visual Studio 2005 Team System Level 200 Course Material
... 31  32  33  34  35  [36]  37  38  39  40  41  42  43  44  45  ...