Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise Design Integration Forum Command line call does not navigate to specified path
    • Sign In

    • State Not Answered
    • Replies 8 replies
    • Subscribers 62 subscribers
    • Views 4766 views
    • Users 0 members are here
    • Line
    • Command
    • path
    • ProjectWise

    Command line call does not navigate to specified path

    Søren Wrang
    Søren Wrang over 8 years ago

    I am trying to open a specific folder in ProjectWise Explorer V8i (SELECTseries 4), using the command prompt.

    Even though I follow these instructions, it does not seem to work: http://communities.bentley.com/products/projectwise/content_management/w/wiki/9209.command-line-arguments

    For example, the line below does not open the specified path. Instead, when ProjectWise is opened, it goes to the folder that was active last time I closed the application:

    "C:\Program Files (x86)\Bentley\ProjectWise\bin\pwc.exe" -d PWSRV.ad.domain.dk:ABC -vn Folder\Subfolder\               (fictitious domain)

    I have tried removing the trailing blackslash in the -vn argument. No success. I have also tried replacing -vn with both -fp and -fn. Does not work either.

    Does anyone have a clue why it is not working?

    Best regards,

    Søren

    • Sign in to reply
    • Cancel
    Parents
    • Dana Guthrie
      0 Offline Dana Guthrie Fri, Sep 4 2015 4:23 PM
      Hello Soren
      The command line is working for me. are you specifying the complete path relative to the root "Documents" folder
      I have a folder structure that goes, Documents(root)\Dana\sub
      My command line then is
      C:\Program Files (x86)\Bentley\ProjectWise\bin>pwc -d server:datasource -u admin -p password -vn dana\sub\
      Try just getting to a folder under the Documents root folder
      In my example C:\Program Files (x86)\Bentley\ProjectWise\bin>pwc -d server:datasource -u admin -p password -vn dana\

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Søren Wrang
      0 Søren Wrang Tue, Sep 8 2015 8:39 AM in reply to Dana Guthrie

      Unknown said:
      Hello Soren
      The command line is working for me. are you specifying the complete path relative to the root "Documents" folder
      I have a folder structure that goes, Documents(root)\Dana\sub
      My command line then is
      C:\Program Files (x86)\Bentley\ProjectWise\bin>pwc -d server:datasource -u admin -p password -vn dana\sub\
      Try just getting to a folder under the Documents root folder
      In my example C:\Program Files (x86)\Bentley\ProjectWise\bin>pwc -d server:datasource -u admin -p password -vn dana\

      Hi Dana,
      Thanks for the reply. I have tried to navigate to a folder under the Documents root folder, with no succes. There are spaces in the folder names, and I have tried both with and without quotes around the folder path.
      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Dana Guthrie
      0 Offline Dana Guthrie Tue, Sep 8 2015 3:00 PM in reply to Søren Wrang
      I have reproduced the issue when there is a space in any part of the folder path i.e. pwc -d server:datasource -u admin -p password -vn dana\image files\ (I will write a defect report for this issue.)

      However I have managed to get it working using the folder id instead. pwc -d server:datasource -u admin -p password -v 393

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Dana Guthrie
      0 Offline Dana Guthrie Tue, Sep 8 2015 3:56 PM in reply to Dana Guthrie
      I have been informed on how to make it work with using the folder name with a space in the path... remove the trailing back slash and put quotes around the path as seen in this example:
      pwc -d SERVER:DATASOURCE -u admin -p admin -vn “master\image files”

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Søren Wrang
      0 Søren Wrang Wed, Sep 9 2015 3:50 AM in reply to Dana Guthrie
      I have now managed to navigate to folders and subfolders, as long as the path does not contain any spaces. As soon as the path includes spaces, it does not work. I have tried adding quotes and removing the trailing backslash - still doesn't work.

      Where can I find the integer ID of a folder?
      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Reply
    • Søren Wrang
      0 Søren Wrang Wed, Sep 9 2015 3:50 AM in reply to Dana Guthrie
      I have now managed to navigate to folders and subfolders, as long as the path does not contain any spaces. As soon as the path includes spaces, it does not work. I have tried adding quotes and removing the trailing backslash - still doesn't work.

      Where can I find the integer ID of a folder?
      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Children
    • Dana Guthrie
      0 Offline Dana Guthrie Thu, Sep 10 2015 9:17 AM in reply to Søren Wrang
      To see the folder ID you would need to create a view in ProjectWise that shows the folder ID. go to view \ managed views. If you do not have a view already created click new and give it a name. If you have a view you want to use, highlight it and click modify. Expand Folders and add the Folder ID to the view.

      • 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