- 博客(5)
- 资源 (7)
- 收藏
- 关注
原创 CreateTextFile 文件的使用
就是修改文本文件的内容,配合着 Write,WriteLine,WriteBlankLine,来进行写入操作。 下面附一个例子 前提是win.txt是必须存在的。 Dim fso,path,note Set fso = CreateObject("SCripting.FileSystemObject") path = "D:\win.txt" Set note = fso.CreateText
2014-01-05 16:01:48 5058 1
原创 VBscript 中 FileSystemObject对象的使用
FileSystemObject 对象,需要使用CreateObject语句来创造具体的实例。 然后其中有几个很重要的文件复制和移动重命名的方法 复制:Copy(),CopyFile,CopyFolder() 移动: Move(),CopyFile,MoveFolder() 重命名: Object.Name[=newname] 下面我将用代码给大家举几个例子 大家就明白了。 首先Dim
2014-01-05 15:21:40 1250
原创 VBscript 中库函数的使用练习
函数中总共使用了 log 是以e 为底的对数,lg 是利用 log(num) / log(10) 来进行计算的,Cos,Tan 是来进行求弧度的,PI 是用const常量来定义 第一题求解 Dim a,b,c,x,e,ans a=1 : b=1 : c=1 : x=2 : e=1 ans=x*(x*(x*(a*x+b)+c)+c)+e WScript.Echo ans 第二题求解 Dim
2014-01-04 19:29:34 1454
原创 VBscript 中调用wshShell.run 来执行批处理命令 type I love you on a notepad
' type I love you on a notepad Dim wsh,note set wsh=CreateObject("WScript.Shell") wsh.Run "notepad" WScript.Sleep 400 wsh.SendKeys "I " '模拟从键盘敲击按键的工程 WScript.Sleep 400 ' 缓慢打字 wsh.SendKey
2014-01-04 01:26:07 4007
原创 VBscript 中 WScript.Shell的使用 设置快捷方式
Window set up some templates for users to build reality and the WScript.Shell is one of the examples. it has three personalities and nearly twelve functions. three personalities This is an exa
2014-01-04 01:04:10 2060
2012 Maryland High School Programming Contest
2013-04-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人