Popular Posts
Word break tag : <wbr/> (HTML5) The  HTML  <wbr>  tag  is  used  defines  a  potential  line  break  point  if  needed.  This  stands  for  Word  BReak. This  is  u... Html Editors NicEdit 授權方式 http://nicedit.com/license.php CLEditor 授權方式 You may use CLEditor under the terms of either the MIT License or the GNU Ge... CTE, recursive search WITH DepartmentSearch(DeptID, DeptParent, DeptName, OuID) AS (     -- 找出簽核者所屬部門     SELECT d.DeptID, d.DeptParent, d.DeptName, d.OuID     FR...
Blog Archive
Stats
Change network configuration (windows)
Manual setting
@ECHO OFF
set varAdapterName="Local Area Connection"
set varIP=192.168.1.68
set varMask=255.255.255.0
set varGateway=192.168.1.1
set varDNS1=192.168.1.1
set varDNS2=192.168.1.1

ECHO Setting IP Address and Subnet Mask
netsh int ip set address name = %varAdapterName% source = static addr = %varIP% mask = %varMask%

ECHO Setting Gateway
netsh int ip set address name = %varAdapterName% gateway = %varGateway% gwmetric = 1

ECHO Setting Primary DNS
netsh int ip set dns name = %varAdapterName% source = static addr = %varDNS1%

ECHO Setting Secondary DNS
netsh int ip add dns name = %varAdapterName% addr = %varDNS2%
DHCP
@set varAdapterName="Local Area Connection"

netsh interface ip set address name=%varAdapterName% source=dhcp
netsh interface ip set dns name=%varAdapterName% source=dhcp register=primary
netsh interface ip set wins name=%varAdapterName% source=dhcp