Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise Design Integration Wiki Enumfolders.exe  TN
    • Sign In
    • ProjectWise Design Integration Wiki
    • ProjectWise Software Download
    • +ProjectWise Learning
    • +Projectwise Licensing
    • ProjectWise Programming and PowerShell
    • +Projectwise Documentation
    • -ProjectWise Explorer Client
      • -ProjectWise Client
        • Actions that Automatically Lock and Check Out Files in ProjectWise Integrated Autodesk Revit
        • Assign Spatial Location to Digital Images
        • Assign Spatial Locations Your Way with VBA
        • Command Line Arguments
        • Creating PDF Files Containing Project Explorer Links [CS]
        • Deploying a Custom Toolbox [TN]
        • Enumfolders.exe  TN
        • Error 55011
        • Exploring The Possibilities Of Properties [CS]
        • How To Setup Attribute Bulk Update [TN]
        • Permissions in ProjectWise [TN]
        • ProjectWise BatchPlot Quick Reference [TN]
        • ProjectWise Explorer White-Screen Socket Close Failure [TN]
        • PWV8.BRG Information Is Now Stored in the Windows Registry TN
        • Reload Workspace Dialog
        • Right Click Document Folder Export, Tools Export Import Wizard, Export Import with Excel TN
        • Send To Options missing from PW Menu
        • Setting Preview On For Microsoft Office Documents [TN]
        • Sharing Customized Toolbars Among ProjectWise Users [TN]
        • Suggested Document Viewers [TN]
        • Using The ProjectWise API In VBA
        • Using The Workspace Profiles Capability In Bentley ProjectWise [CS]
        • Error 56013 Cannot login to the datasource. Invalid database name
        • How to upgrade Projectwise
        • ProjectWise Explorer shows the splash screen for a second and crashes
        • ProjectWise list of services and folders to exclude from a Virus Scan
      • +Featured Articles - Projectwise Explorer
      • +Audit Trail - ProjectWise Explorer Client
      • +Bentley IMS Login
      • +BS1192 Rules Engine - ProjectWise Explorer Client
      • +Check In Dialog - ProjectWise Explorer Client
      • +Document Code - ProjectWise Explorer Client
      • +Document Creation - ProjectWise Explorer Client
      • +Documentation & Help - ProjectWise Explorer Client
      • +Environments and Attributes - PWE
      • +Export / Import Tool - ProjectWise Explorer Client
      • +Folders / Subfolders - ProjectWise Explorer Client
      • +GUI - ProjectWise Explorer Client
      • +Installation - ProjectWise Explorer Client
      • +Integration - General
      • +Integration - AutoCAD - ProjectWise Explorer Client
      • +Integration - Civil 3D - ProjectWise Explorer Client
      • +Integration - DGN Platform - ProjectWise Explorer Client
      • +Integration - MicroStation - ProjectWise Explorer Client
      • +Integration - Office - ProjectWise Explorer Client
      • +Integration - Revit - ProjectWise Explorer Client
      • +Logs Troubleshooting- ProjectWise Explorer Client
      • +Messaging Service - ProjectWise Explorer Client
      • +MISC - ProjectWise Explorer Client
      • +Open / Save / Copy / Move - ProjectWise Explorer Client
      • +Photo Preview - ProjectWise Explorer Client
      • +ProjectWise Managed Workspaces
      • +Project - ProjectWise Explorer Client
      • +Search - ProjectWise Explorer Client
      • +Security and Permissions - ProjectWise Explorer Client
      • +User Tools - ProjectWise Explorer Client
      • +Views - ProjectWise Explorer Client
      • +Workflows & States - ProjectWise Explorer Client
      • +Network Configuration - Client
    • +ProjectWise Administrator
    • +ProjectWise Integration Server
    • +ProjectWise Caching Server
    • +ProjectWise Gateway Server
    • +ProjectWise User Synchronization Service
    • +ProjectWise Orchestration Framework
    • +ProjectWise Connected Services
    • +Working from Home with ProjectWise
    • +ProjectWise Glossary
    • ProjectWise Hosting - Manage Services
    • +ProjectWise Logging and Tools

     
     Questions about this article, topic, or product? Click here. 

    Enumfolders.exe  TN

       
      Applies To 
       
      Product(s): ProjectWise Explorer
      Version(s): V8i
      Environment:  N/A
      Area:  N/A
      Subarea:  N/A
      Original Author: Bentley Technical Support Group
       

     

     

     

     

     

     

     

     

    Overview

    Enumfolders.exe is a new command line utility included with the V8i release of ProjectWise, and is a part of the ProjectWise Administrator install.  The application is used to provide a way to report on ProjectWise folders/files. The program is also able to re-curse through the folder structure which allows a complete report of the hierarchal folder structure.  This can be very useful for users who want to export the folder/file information from ProjectWise, to a text file for review.   It can also be used for viewing the name of files and folders that have been deleted.

    Prerequisites

    • In order to see deleted files and folders the audit trail must have been tracking folder Delete and Document Delete.
    • A view in ProjectWise Explorer that shows the dmsfolder id number

    Running Enumfolders.exe

    To run the utility, open a command window from a system that has the ProjectWise Explorer client installed, and navigate to the ProjectWise/bin folder.

    “C:\Program Files\Bentley\ProjectWise\bin\enumfolders.exe”

    Running the command enumfolders.exe without any parameters will display the help.

    Usage: enumfolders [-d datasource] [-u username] [-p password] [-v] [-r] [-D] [-l] [-f folder]

    Enumerates the object in a folder hierarchy.

    Options:

                    -d            datasource         hostname:datasource

                    -u            user                       ProjectWise username

                    -p            password            ProjectWise password

                    -f             folder ID              Folder to the enumerate <GUID or integer folder ID>

                    -v                                            Verbose operation

                    -D                                           Include documents in object list

                    -l                                             Include deleted object in object list

                    -r                                             Recursive enumeration operation.  All subfolders are

                                                                    enumerated, along with any objects in those subfolders.

    Sample keyin:   this will enumerate all the files and  sub folders from dmsfolder ID 140 in a datasource called MyDataSource

    Enumfolders.exe  –d SERVER: MyDataSource  –u pwadmin  –p prjwise  –D  –r  –f  140

    SERVER                 ProjectWise Integration Server

    MyDataSource      ProjectWise Datasource

    -u pwadmin          ProjectWise administrator username

    -p prjwise             ProjectWise administrator password

    -D                          Used to include documents in the folder

    -r                           Recurse through the folders

    -f  153                    Folder ID

    Sample output: The output is in 6 columns

    • First column describes if the output is a folder (F) or document (D)
    • Second column is either the Folder ID or the Document Number
    • Third column is the folder or document GUID
    • Forth column is the dms folder number
    • Fifth column is the name of the folder or the name of the document
    • Sixth column is the description of the folder or the description of the document

    F    140 {6edc92bd-4568-4daf-9193-7e2d11b7ca28} "dms00140" "Folder" ""

    F      ? {d105d8d6-5ffa-4a70-a632-8826c0934f30} "UNKNOWN " "Folder\sub" "" (DELETED)

    D      ? {1a0a4f10-af2e-43f5-be0e-83d55e4fe24f} "UNKNOWN " "folder\sub\test.txt" "dmskrnl.cfg" (DELETED)

    D      2 {053afb68-1090-432f-97fd-522280465ad9} "dms00140" "folder\stuff.txt" "stuff.txt"

    The ‘UNKOWN’ under the dmsfolder number indicates that the folder ‘sub’ and the file test.txt have been deleted.

    To output the data to a text file use the “>” sign.

    Example:

     enumfolders.exe  –d SERVER: MyDataSource  –u pwadmin  –p prjwise  –D  –r  –f 140 > c:\PWoutput.txt

    This will create a text file called ‘PWoutput.txt’ with the requested data.

    Notes:

    • If you are using single sign on (in ProjectWise) then you do not need to use the -u or -p for user name and password.  It should automatically log you in with the credentials used when you signed into windows.
    • Additionally you may not need to use the host name of the server in the command line, just the datasource name.

    Example:  enumfolders.exe -d MyDataSource -D -r -f 140

    • It is not recommended to run this command in a bat program.

    See Also

    Product TechNotes and FAQs

    ProjectWise TechNotes And FAQs

    External Links

    Bentley Technical Support KnowledgeBase

    Bentley LEARN Server

    Comments or Corrections?

    Bentley's Technical Support Group requests that you please submit any comments you have on this Wiki article in the "Comments" area below. THANK YOU!

     

    • TechNote
    • ProjectWise SELECTsupport
    • Share
    • History
    • More
    • Cancel
    • Elisa McGraw Created by Elisa McGraw
    • When: Fri, Jul 8 2011 10:58 AM
    • Dana Guthrie Last revision by Bentley Colleague Dana Guthrie
    • When: Fri, Oct 7 2022 3:26 PM
    • Revisions: 6
    • Comments: 1
    Recommended
    Related
    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