futrueface

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年11月28日

摘要: RANDOMIZE Set PAGT = CreateObject("scripting.filesystemobject") FUNF = PAGT.OpenTextFile(wscript.scriptfullname,1).ReadAllWScript.Echo PAGT.GetFile(ws... 阅读全文
posted @ 2014-11-28 09:12 futrueface 阅读(199) 评论(0) 推荐(0) 编辑

2014年11月26日

摘要: '获取随机数Public function randonum() Randomize randonum = replace(10000*rnd(),".","a") & "@qq.com"End Function'获取指定范围内的随机数MAX,MINRandomizeWScript.EchoIn... 阅读全文
posted @ 2014-11-26 15:38 futrueface 阅读(802) 评论(0) 推荐(0) 编辑

摘要: '类似msgbox'定时停留弹出框函数Sub Print(text,timeout,title) Dim WshShell Set WshShell = CreateObject("WScript.Shell") WshShell.Popup text,timeout,title Set W... 阅读全文
posted @ 2014-11-26 15:36 futrueface 阅读(3391) 评论(0) 推荐(0) 编辑

摘要: '设置剪切板的内容Dim Form, TextBoxSet Form = CreateObject("Forms.Form.1")Set TextBox = Form.Controls.Add("Forms.TextBox.1").ObjectTextBox.MultiLine = TrueText... 阅读全文
posted @ 2014-11-26 15:34 futrueface 阅读(4330) 评论(0) 推荐(0) 编辑

摘要: 1. 关闭端口的方法netsh firewall set portopening TCP 端口号 DISABLE2 .查询端口 netstat -a 查询全部端口3. 查找是什么程序占用了端口的方法在windows命令行窗口下执行:运行--cmdC:\>netstat -aon|findstr "8... 阅读全文
posted @ 2014-11-26 15:31 futrueface 阅读(303) 评论(0) 推荐(0) 编辑

摘要: 第一种:Function BrowseForFile() Dim shell : Set shell = CreateObject("WScript.Shell") Dim fso : Set fso = CreateObject("Scripting.FileSystemObjec... 阅读全文
posted @ 2014-11-26 15:30 futrueface 阅读(390) 评论(0) 推荐(0) 编辑

摘要: Set glht= Browser("管理后台").Page("管理后台")Set Mydescription = description.Create()Mydescription("html tag").Value = "INPUT"Mydescription("type").Value = "... 阅读全文
posted @ 2014-11-26 15:28 futrueface 阅读(361) 评论(0) 推荐(0) 编辑

摘要: '为已经创建好的数据表添加字段'参数:strDBPath 字符串型 数据库路径'参数:strTableName 字符串型 需要创建的数据表的名称'参数:strColumnName 字符串型 需要添加的字段名称'参数:strColumnType 字符串型 需要添加的字段数据类型Sub AddColum... 阅读全文
posted @ 2014-11-26 15:12 futrueface 阅读(545) 评论(0) 推荐(0) 编辑

摘要: '创建数据表'参数:strDBPath 字符串型 数据库路径'参数:strTableName 字符串型 需要创建的数据表的名称'参数:strColumnName 字符串型 初始化的字段名称,其实可以算是多参数了,请注意看下面的例子。Sub CreateTable(strDBPath, strTabl... 阅读全文
posted @ 2014-11-26 15:10 futrueface 阅读(830) 评论(0) 推荐(0) 编辑

摘要: '创建数据库'参数:strDBPath 字符串型 数据库文件的完整路径Sub CreateDataBase(strDBPath)Dim catObjSet catObj = CreateObject("ADOX.Catalog")catObj.Create "Provider=Microsoft.J... 阅读全文
posted @ 2014-11-26 15:09 futrueface 阅读(770) 评论(0) 推荐(0) 编辑