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