Showing posts with label Cmd_shell. Show all posts
Showing posts with label Cmd_shell. Show all posts

Thursday, January 31, 2008

VBScript debug and execute

Keywords: VBscript, debugger, execute


同事要我帮助他修改他的一个VBScript脚本, 当我收到邮件后, 我在想, 1.我该怎样运行这个脚本; 2. 我该使用什么编辑器?; 3.有没有比较好的script调试器?


首先google, 微软最新的脚本执行器为Microsoft script 5.7 版本. 需要download并install. 执行脚本的方法是: cscript yourscript.vbs [options], 详见cscript /?


用什么编辑器编辑VB script呢? 最好能有intellisense功能, Visual studio 6有一个这样的编辑器. 但可以使用Office软件的VBA editor.

Tuesday, January 22, 2008

Windows shell script programming


Keywords: Windows, shell script, bat file


There are 2 web sites, they are useful for batch program.


http://www.student.oulu.fi/~vtatila/batch_tutorial.html


http://www.computerhope.com/msdos.htm


Friday, January 4, 2008

how to change you IP Addr by script


Keywords: script, IP address




ChangeIP.bat




Rem: This file is a bat file, can help you change your ip automatically. please change the bold part depended your condition.
@echo off

rem Local Area Connection 3 is your connection name in your windows network connections.
netsh interface ip set address name="Local Area Connection 3" static 10.225.79.181 255.255.255.0 10.225.79.1 1

Rem the following 2 lines will set dns for given connection

netsh interface ip set dns "Local Area Connection 3" static 10.225.68.3
netsh interface ip add dns "Local Area Connection 3" 10.237.5.79 index=2

@echo off