• 批处理脚本(vbs)创建快捷方式


    @echo off
    rem oLink.Arguments
    rem oLink.Description
    rem oLink.HotKey
    rem oLink.IconLocation
    rem oLink.WindowStyle
    rem oLink.WorkingDirectory
    
    set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs"
    
    echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT%
    echo sLinkFile = "%cd%agvtask.lnk" >> %SCRIPT%
    echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT%
    echo oLink.TargetPath = "%cd%inagvtask.exe" >> %SCRIPT%
    echo oLink.IconLocation = "%cd%inagvtask.exe" >> %SCRIPT%
    echo oLink.Save >> %SCRIPT%
    
    echo sLinkFile = "%cd%app.lnk" >> %SCRIPT%
    echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT%
    echo oLink.TargetPath = "%cd%inAGVApp.exe" >> %SCRIPT%
    echo oLink.IconLocation = "%cd%inAGVApp.exe" >> %SCRIPT%
    echo oLink.Save >> %SCRIPT%
    
    echo sLinkFile = "%cd%vcar.lnk" >> %SCRIPT%
    echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT%
    echo oLink.TargetPath = "%cd%virtualcaragv-VirtualCarForm.exe" >> %SCRIPT%
    echo oLink.IconLocation = "%cd%virtualcaragv-VirtualCarForm.exe" >> %SCRIPT%
    echo oLink.Save >> %SCRIPT%
    
    cscript /nologo %SCRIPT%
    del %SCRIPT%
  • 相关阅读:
    从零搭建springboot+mybatis逆向工程
    基础SQL总结
    Map集合浅谈
    ArrayList、LinkedList与Vector的区别
    java多线程总结
    P4108 [HEOI2015]公约数数列
    P2168 [NOI2015] 荷马史诗
    正睿 2021 Noip 十连测 Day2
    CF772E Verifying Kingdom
    BZOJ1767 [CEOI2009] Harbingers
  • 原文地址:https://www.cnblogs.com/wolbo/p/14510602.html
Copyright © 2020-2023  润新知