Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Set WSHShell = WScript.CreateObject("WScript.Shell")
'folderPath - папка в которой будет создан ярлык target.lnk
folderPath = "C:\Users\user\Desktop"
Set link = WSHShell.CreateShortcut(folderPath + "\target.lnk")
'targetPath - папка для которой необходимо создать ярлык
targetPath = "C:\Users\user\Desktop\target_folder"
link.TargetPath = targetPath
link.Save
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question