VBscript 中 WScript.Shell的使用 设置快捷方式
来源:互联网 发布:刷svip永久软件 编辑:程序博客网 时间:2024/05/18 02:19
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 example. the shell is a reality and its three personalities are CurrentDirectory | Environment | SpecialFolders
CreatShortcut is one of the functions.
'set up shortcut for one fileDim shell,desktopPath,shortLnkset shell=CreateObject("WScript.Shell")desktopPath=shell.SpecialFolders("Desktop") 'the postion of shortcutset shortLnk=shell.CreateShortcut(desktopPath &"\cmd.lnk") ' set a reality of shortcutshortLnk.TargetPath="C:\Windows\System32\cmd.exe" ' the shortLnk is the shortcut of cmd.exe shortLnk.WorkingDirectory="C:\Windows\System32" ' this is where the cmd isshortLnk.Save() ' you need to make the shortLnk become a reality not just in the memory
0 0
- VBscript 中 WScript.Shell的使用 设置快捷方式
- vbScript中WScript.Shell对象的run和exec使用心得
- vbScript中WScript.Shell对象的run和exec使用心得
- VBScript中Wscript.Shell的Run与Exec
- VB创建快捷方式的简易方法--运用Wscript.Shell
- wscript.shell使用
- wscript.shell使用
- WEB打印系列教程之三--使用WScript.Shell进行复杂的WEB打印设置
- VBS中WScript.Shell对象的run和exec的使用及区别
- VBS中WScript.Shell对象的run和exec的使用及区别
- 使用命令行WScript和vbs创建快捷方式
- windows2003下使用WScript.Shell
- WEB打印系列教程之二--使用WScript.Shell通过编程方式进行复杂的WEB打印设置
- WScript.CreateObject(WScript.Shell)
- Javascript中使用new ActiveXObject("WScript.Shell")创建对象,出现:Automation服务器不能创建对象的错误,其原因有
- WScript对象的VBS,VBScript,Javascript,ASP例程
- wscript.shell
- wscript.shell
- C# 身份证验证程序
- Delphi 之遞增與遞減函數
- Linux上Tomcat服务器已启动但无法访问Tomcat主页解决方法
- Struts的validate框架是如何验证的?
- Guice 三种注入方式
- VBscript 中 WScript.Shell的使用 设置快捷方式
- lubuntu13.10下使用HL340(CH431)usb转串口线通过minicom连接44B0开发板
- Bug描述单
- mysql limit分页优化方法分享
- Hibernate 问题,在执行Query session.createQuery(hql) 报错误直接跳到finally
- G++不同版本的C/C++软件移植指南
- innerHTML 与 innerText的用法与异同
- Winform 验证输入TextBox身份证号是否有效
- mysql file sort