首页 > 系统相关 >windows使用bat生成桌面快捷方式

windows使用bat生成桌面快捷方式

时间:2022-12-10 13:05:54浏览次数:57  
标签:exe% bat Set windows echo exe lnk 快捷方式

@echo off
set "exe=Patch.exe"
set "lnk=ruanjian"
mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\%lnk%.lnk""):b.TargetPath=""%~dp0%exe%"":b.WorkingDirectory=""%~dp0"":b.Save:close")
echo 完成&pause



标签:exe%,bat,Set,windows,echo,exe,lnk,快捷方式
From: https://blog.51cto.com/u_15384850/5927474

相关文章

  • Mybatis-Plus系列---【解决null值字段不更新的问题】
    解决null值字段不更新的问题1.问题我的MP版本是3.3.2,用Mybatis-Plus的updateById()来更新数据时,无法将字段设置为null值(更新后数据还是原来的值)。2.分析默认情况下,Mybatis-......
  • redis for windows 7.0.5安装包全网首发
    这是冰河之刃渡桥计划的一部分,使用Windows计划任务自动运行redis服务。 博客地址:https://www.cnblogs.com/binghe021 下载地址:码云 https://gitee.com/binghe021/r......
  • PostgreSQL 使用数组类型及mybatis操作数组类型
    为啥要用到数组类型呢?因为​​ES支持数组类型​​,为了迁移遍历,所以也支持数组类型。selectdocid,authorsfromsearch_doc_new_icwhereauthors@>'{"惠普"}'limit1......
  • mybatis-plus中出现 org.apache.ibatis.binding.BindingException: Invalid bound sta
    记录用mybatis-plus写后端代码时出现了如下的问题org.apache.ibatis.binding.BindingException:Invalidboundstatement(notfound):com.springboot.mapper.BooksMa......
  • Linux/Windows双系统时间同步
    Windows和Linux分别用的是RTC和UTC而导致产生8小时的时间差方案1:linux改为RTC时间(systemd默认硬件时钟为协调世界时(UTC))sudotimedatectlset-local-rtc1orsudotimedate......
  • Windows的dism命令
    1.获取帮助dism/get-helpdism/?2.指定当前系统:/online3.列出当前系统的所有功能名称,这些名称可以用在后续的命令中启用或禁止dism/online/get-feature如下图:3.如启用功......
  • Windows,C++编程创建窗口的过程详解
    MFC创建窗口一般要经历以下四个操作步骤:(1)   定义窗口类主要指定窗口类的一些基本且必须指定的特征,窗口类的特征主要是由WNDCLASS结构体来定义的,WNDCLASS的定义如下:type......
  • MyBatis详解(二)
    前言本篇幅是继MyBatis详解(一)的下半部分。 MyBatis执行Sql的流程分析【1】基于前面已经将XML文件进行build解析了并且返回了SqlSessionFactory【1.1】那么分析S......
  • MybatisQuery
    @MapperpublicinterfaceMybatisQuery{List<PreferProbeItem>queryProbe(StringuserId);ProbeCriterionqueryProbeCriterion(ProbeCriterionParamprob......
  • MybatisQueryDao.mysql.xml
    <?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEmapperPUBLIC"-//mybatis.org//DTDMapper3.0//EN""http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mapper......