如何更改位于快速启动启动/任务栏中的快捷方式.lnk文件的属性?

时间:2016-09-20 06:39:27

标签: vbscript

我尝试了以下脚本,但只能更改“桌面”存储项目的快捷方式属性,但想要更改存储在以下位置的项目:

  1. C:\ Users \ bijender \ AppData \ Roaming \ Microsoft \ Internet Explorer \ Quick Launch \ User Pinned \ TaskBar \
  2. C:\ Users \ bijender \ AppData \ Roaming \ Microsoft \ Internet Explorer \ Quick Launch \ User Pinned \ StartMenu \
  3. 下面的VBScript:

    Set wsc = WScript.CreateObject("WScript.Shell")
    
    Set lnk = wsc.CreateShortcut(wsc.SpecialFolders("Desktop") & "\AE Client.LNK")
    
    lnk.TargetPath = "C:\Program Files\Hyland\Application Enabler\AEClient.exe" \\rrscwpappimg02\Workflow\CWF\AppEnabler\CombinedCWF.xml
    lnk.Description = "AE Client"
    lnk.WorkingDirectory = "C:\Program Files (x86)\Hyland\Application Enabler\"
    lnk.Save
    

0 个答案:

没有答案