'Rem EverythingAutoSetup.VBS 安装Everything的VBS脚本 2019年11月25日写

'Rem Everything是voidtools开发的一款本地NTFS文件和文件夹名称搜索工具
'Rem Everything基于名称快速定位本地NTFS文件和文件夹。
'Rem Everything不具有MasterSeeker的索引完成前抢先式显示部分搜索结果的能力

'Rem http://www.autoahk.com/archives/16500
'Rem https://www.cnblogs.com/delphixx/p/11927002.html
'Rem https://gitee.com/weiyunwps618/codes/kuapc0qgdmibsz1e53olv49
'Rem https://www.voidtools.com/zh-cn/
'Rem https://www.xyboot.com/

'Rem 请确保此VBS脚本所在文件夹存在Everything.exe和Everything.lng这两个文件
'Rem 安装Everything的VBS脚本
'Rem 为何不使用AutoHotkey
'Rem 因为没有安装AutoHotkey的电脑无法运行AHK脚本
'Rem 因为EXE文件容易被杀毒软件误删

'Rem 新建文件夹D:\DIYTOOLS\Everything
'Rem 之所以把绿色免安装软件分类保存在D:\DIYTOOLS\
'Rem 是为了兼容“杏雨梨云USB维护系统2019中秋版之国庆更新”
'Rem 推荐使用uTools管理电脑中的快捷方式
dim fso,fld
Set fso=CreateObject("Scripting.FileSystemObject")
if fso.folderExists("D:\DIYTOOLS\Everything") Then
'MsgBox "文件夹已经存在"
else
set fld = fso.createfolder("D:\DIYTOOLS\Everything")
End If

'Rem 复制文件到D:\DIYTOOLS\Everything文件夹
parentfolder = "D:\"
sourcefile = createobject("Scripting.FileSystemObject").GetFolder(".").Path&"\everything.exe"
targetfolder = parentfolder & "DIYTOOLS" & "\" & "Everything"& "\"
set objshell = createobject("shell.application")
set objfolder = objshell.nameSpace(parentfolder)
set so=createobject("scripting.filesystemobject")

if IsExitAFile("D:\\DIYTOOLS\\Everything\\Everything.exe") Then
'DeleteAFile("D:\\test.tst")
else
fso.getfile(sourcefile).copy(targetfolder)
End If

sourcefile = createobject("Scripting.FileSystemObject").GetFolder(".").Path&"\everything.lng"

if IsExitAFile("D:\\DIYTOOLS\\Everything\\Everything.lng") Then
'DeleteAFile("D:\\test.tst")
else
fso.getfile(sourcefile).copy(targetfolder)
End If

Function IsExitAFile(filespec)
Dim fso
Set fso=CreateObject("Scripting.FileSystemObject")
if fso.fileExists(filespec) Then
IsExitAFile=True
else IsExitAFile=False
End If
End Function

'Rem 在桌面和开始菜单新建文件D:\DIYTOOLS\Everything\Everything.exe的快捷方式
Set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oShellLink = WshShell.CreateShortcut(strDesktop & "\Everything.lnk")
oShellLink.TargetPath = "D:\DIYTOOLS\Everything\Everything.exe"
oShellLink.Arguments = " " '程序的参数
oShellLink.WindowStyle = 1 '参数1默认窗口激活,参数3最大化激活,参数7最小化
oShellLink.Hotkey = "F8" '快捷键
oShellLink.IconLocation = "D:\DIYTOOLS\Everything\Everything.exe, 0" '图标
oShellLink.Description = "Everything搜索本地文件" '备注
oShellLink.WorkingDirectory = "D:\DIYTOOLS\Everything\" '起始位置
oShellLink.Save '创建保存快捷方式

'Rem 运行Everything
set shell=CreateObject("WScript.shell")
shell.Run "D:\DIYTOOLS\Everything\Everything.exe"

'Rem EverythingAutoSetup.VBS 安装Everything的VBS脚本 2019年11月25日写的更多相关文章

  1. 键盘和鼠标闲置超时时关闭显示器并锁定电脑桌面的AutoHotkey脚本 2019年11月24日写

    /* 键盘和鼠标闲置超时时关闭显示器并锁定电脑桌面的AutoHotkey脚本 2019年11月24日写 在电脑桌面锁定时移动鼠标就会显示登录界面,此时即使超过电源设置的时间电脑也不会关闭显示器使得屏幕 ...

  2. 开机时自动启动的AutoHotkey脚本 2019年10月09日

    ;;; 开机时自动启动的AutoHotkey脚本 2019年10月09日;; http://www.autoahk.com/archives/16600; https://www.cnblogs.co ...

  3. 开机时自动启动的AutoHotkey脚本 2019年07月08日19时06分

    ;;; 开机时自动启动的AutoHotkey脚本;; 此脚本修改时间 2019年06月18日20时48分;; 计时器创建代码段 ------------------------------------ ...

  4. 根据随身固态U盘卷标搜索U盘盘符并打开文件的批处理脚本.bat 徐晓亮 595076941@qq.com 2019年12月19日6点50分

    @Echo offRem 根据随身固态U盘卷标搜索U盘盘符并打开文件的批处理脚本.batRem 徐晓亮 595076941@qq.com 2019年12月19日6点50分 Rem 此批处理脚本源代码的 ...

  5. 11月16日《奥威Power-BI基于SQL的存储过程及自定义SQL脚本制作报表》腾讯课堂开课啦

           上周的课程<奥威Power-BI vs微软Power BI>带同学们全面认识了两个Power-BI的使用情况,同学们已经迫不及待想知道这周的学习内容了吧!这周的课程关键词—— ...

  6. 2019年1月23日,好像是这个日子,RF发布了 1.7.3.1 支持python3.6以上了,安装成功。

    安装步骤:(win10 家庭版 64) 1.安装Python3.7.2,记得勾选添加Path 2.pip install robotframework 3.pip install wxPython 4 ...

  7. 亲测安装nginx1.8.1 日期2016年3月16日

    1.安装nginx tar zxvf nginx-1.8.1.tar.gz cd nginx-1.8.1 ./configure make make install /usr/local/nginx/ ...

  8. 2016年11月3日JS脚本简介数据类型: 1.整型:int 2.小数类型: float(单精度) double(双精度) decimal () 3.字符类型: chr 4.字符串类型:sting 5.日期时间:datetime 6.布尔型数据:bool 7.对象类型:object 8.二进制:binary 语言类型: 1.强类型语言:c++ c c# java 2.弱类型语

    数据类型: 1.整型:int 2.小数类型: float(单精度) double(双精度) decimal () 3.字符类型: chr 4.字符串类型:sting 5.日期时间:datetime 6 ...

  9. 新安装loadrunner无法录制脚本的原因之一及解决方案

    eg:IE浏览器 1.新安装的loadrunner录制脚本,一直是加载中的状态: 2.苦思冥想终于找到解决方案: 3.IE浏览器-->设置-->Internet选项 4."安全& ...

随机推荐

  1. 复习Spring第四课---Spring对国际化的支持

    其实国际化这东西很少使用,之前也就是粗略的学了下,趁今天有空,拿出来稍微写写.以前学android开发的时候,类似于多语言的版本.差别就是一个是手机打开,一个是浏览器打开,本质是一样的. 在Sprin ...

  2. Java-学习日记(Atomic,Volatile)

    很早之前在公司就看到了atomicInteger,atomicLong这些变量了,一直不明白是什么意思,今天花了点时间了解下. volatile: 先从volatile开始讲起,volatile是多线 ...

  3. SpringBoot项目创建流程--SpringMVC

    SpringBoot项目创建步骤 1. 创建SpringBoot工程 (1) File → New → Project → Spring Initilizr (2) Name:MySpringBoot ...

  4. LevelDB学习笔记 (2): 整体概览与读写实现细节

    1. leveldb整体介绍 首先leveldb的数据是存储在磁盘上的.采用LSM-Tree实现,LSM-Tree把对于磁盘的随机写操作转换成了顺序写操作.这是得益于此leveldb的写操作非常快,为 ...

  5. uniapp uni.navigateTo 传值传对象

    uni.navigateTo({ url: '/pages/details?obj='+ encodeURIComponent(JSON.stringify(item)) }); 接收: onLoad ...

  6. CentOS-yum安装Redis(单点)

    源文件安装(推荐安装) 在CentOS系统中,首先安装EPEL仓库,然后更新yum源: $ yum install epel-release -y $ yum update -y 然后安装Redis数 ...

  7. Docker | Docker常用命令学习笔记

    @ 目录 前言 1. 帮助命令: version.info.help 2. 镜像命令: images.search pull.rmi 3. 容器命令: pull.run ps.exit .ctrl+P ...

  8. 你真的懂 export default 吗?

    export default A 和 export { A as default } 乍一看是一样的,但是里面有一些细微的区别比较容易留坑.本文介绍两种写法的不同之处. import 语句导入的是引用 ...

  9. Reactive Spring实战 -- 响应式MySql交互

    本文与大家探讨Spring中如何实现MySql响应式交互. Spring Data R2DBC项目是Spring提供的数据库响应式编程框架. R2DBC是Reactive Relational Dat ...

  10. 资源:docker-compose下载路径

    docker-compose下载路径: compose所有版本:https://github.com/docker/compose/releases