Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum How to update projectwise shortcuts to point to new datasource ?
    • Sign In

    • State Suggested Answer
    • Replies 7 replies
    • Answers 2 answers
    • Subscribers 67 subscribers
    • Views 1150 views
    • Users 0 members are here
    • ProjectWise
    • ProjectWise PowerShell Modules

    How to update projectwise shortcuts to point to new datasource ?

    Mario Molotkov
    Offline Mario Molotkov over 2 years ago

    We recently upgraded from projectwise v8i to the latest version, and in the process moved all our folder structure to a new datasource. Many of our users had shortcuts pointing to some files in the old setup, is there a powershell script or some other way to allows those shortcuts to point to the new Datasource. The paths are all the same except for the datasource name.

    Thanks,

    • Sign in to reply
    • Cancel
    • Dan Williams
      0 Offline Dan Williams Wed, Oct 14 2020 5:01 PM

      I'm not sure what you mean by "shortcuts".  The links for anything in the custom folders are datasource dependent, so they will still work.

      If you mean URL/URN links, then you might want to see if the "Smart Link Processor" tool in MostOfDavesTools addresses your issue.

      You can find MostOfDavesTools mentioned here: https://communities.bentley.com/search?q=mostofdavestools&group=400 

      You can find a copy of the documentation (included in the delivery) here:  https://communities.bentley.com/products/projectwise/content_management/m/mediagallery/274629 

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Reject Answer
      • Cancel
    • Mario Molotkov
      0 Offline Mario Molotkov Wed, Oct 14 2020 5:18 PM in reply to Dan Williams

      Hi,

      I looked over the links and I don't think that's what I'm looking for.

      By shortcuts, I meant the .lnk files that are created in windows if you drag a file from PWE to the desktop.

      They have the original server name hardcoded in them, and i'd like them to point to the new one.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Kevin van Haaren
      0 Offline Kevin van Haaren Wed, Oct 14 2020 5:52 PM

      the .lnk files are standard windows link files. you can manipulate with Powershell indirectly through the vbscripting objects:

      https://geeklifenow.com/2019-04-06-PS_ChangeShortcutTarget/

      links in documents/emails that are html style links have to be modified by tools that work in that document's application.

       

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Kevin van Haaren
      0 Offline Kevin van Haaren Wed, Oct 14 2020 5:53 PM in reply to Kevin van Haaren

      There is this too:

      https://devblogs.microsoft.com/scripting/how-can-i-change-the-target-of-a-desktop-shortcut/

       

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Mario Molotkov
      0 Offline Mario Molotkov Thu, Oct 15 2020 10:11 AM in reply to Kevin van Haaren

      Hi,

      I tried that before posting here. They don't seem to be regular windows lnk files,  in the screenshot below the target path attribute is where the target would usually be indicated. While here it is empty, and nowhere to see the target!

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    >

    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies