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.
1,132 questions
{count} votes

1 additional answer

Sort by: Most helpful
  1. CarnegieJ 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