How to build shortcuts with VB

zhaozj2021-02-16  46

Private Declare Function FcreateshellLink Lib "Stkit432.dll" (Byval LpstrlinkName As String, Byval LpstrlinkPath AS String, Byval LPSTRLINKARGS AS STRING) AS Long

SUB Command1click ()

DIM LRETURN AS long 'Add to Desktop

Lreturn = fcreateshelllink ("../../ Desktop", "Shortcut to Calculator", "C: /Windows/calc.exe", "" "

'Add to program group

Lreturn = FcreateshellLink ("/ Startup", "Shortcut to Calculator", "C: /Windows/calc.exe", "" "

End Sub

转载请注明原文地址:https://www.9cbs.com/read-24399.html

New Post(0)