creating a shortcut for a exe from a batch file

后端 未结 9 1494
清酒与你
清酒与你 2020-11-27 05:39

how to create a shortcut for a exe from a batch file.

i tried

call link.bat \"c:\\program Files\\App1\\program1.exe\" \"C:\\Documents and Settings\\         


        
9条回答
  •  有刺的猬
    2020-11-27 06:17

    You can check shortcutjs.bat:

    ::creates a shortcut that will start the target with minimized window and admin permissions
    shortcutjs.bat -linkfile myscriptMin.lnk -target "%cd%\myscript.bat" -windowstyle 7 -adminpermissions yes
    
    ::creates a shortcut with a hot keys
    shortcutjs.bat -linkfile myscriptHK.lnk -target "%cd%\myscript.bat" -hotkey "ALT+CTRL+P"
    

    With this you can also edit existing shortcut or only display its properties.

提交回复
热议问题