Share via

shortcut (*.lnk)

fpefpe 21 Reputation points
2023-04-10T17:23:44.74+00:00

is there a sysinternals command to created shortcut file? (*.lnk)

Sysinternals
Sysinternals

Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.


Answer accepted by question author
  1. Carnegie Johnson 76 Reputation points
    2023-04-10T17:45:09.8566667+00:00

    Delete this duplicate entry that must be at least 10

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Carnegie Johnson 76 Reputation points
    2023-04-10T17:46:14.4633333+00:00

    Use Powershell. Here is an example to create a Destkop file shorcut.

    powershell.exe "$lnk= (New-Object -COM WScript.Shell).CreateShortcut ('%userprofile%\Desktop\shortcut.lnk'); $lnk.TargetPath='C:\TargetFilePath'; $lnk.Save()"
    
    
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.