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,169 questions
{count} votes

Accepted answer
  1. CarnegieJ 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. 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

Your answer

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