Jump to content

Propertys of Link-File


Recommended Posts

I'm installing and setting up a programm with AutoIt, and it works fine.

The only point I still have to do manually is changing the link-file.

My link-file (AddonStats.lnk) should get the property 'WorkingDirectory' set to 'D:\Addons\CollectedData'.

I have no clue how to set this with AutoIt.

I tried VBS-shell but it doesn't work:

; Desktop-Link: ArbeitsDirectory einstellen
$Shell = ObjCreate("WScript.Shell")
$DesktopPath = $Shell.SpecialFolders("Desktop");
$link = $Shell.openShortcut($DesktopPath & "\AddonStats.lnk")
$link.WorkingDirectory = "D:\Addons\CollectedData"
$link.Save

Error: "The requested action with this object has failed."

There is no 'openShortcut' (Only CreateShortcut?)

Edited by MatheFreak
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...