creating a shortcut for a exe from a batch file

后端 未结 9 1540
清酒与你
清酒与你 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:38

    Alternative method, using a third party utility:

    Creating a Shortcut from the command line (batch file)

    XXMKLINK:

    With XXMKLINK, you can write a batch file for software installation which has been done by specialized installation programs. Basically, XXMKLINK is a tool that gathers various information from a command line and packages it into a shortcut.

    xxmklink spath opath 
    
    where 
    
      spath     path of the shortcut (.lnk added as needed)
      opath     path of the object represented by the shortcut
    

提交回复
热议问题