Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
AutoPLANT | OpenPlant | PlantWise
  • Product Communities
  • More
AutoPLANT | OpenPlant | PlantWise
AutoPLANT | OpenPlant | PlantWise Wiki How to Package Several Projects Automatically Using CMD and Batch File
    • Sign in
    • -AutoPLANT | Bentley Raceway and Cable Management | OpenPlant | PlantWise Wiki
      • +OpenPlant
      • -Bentley AutoPLANT
        • AutoPLANT Product Group Compatibility
        • +AutoPLANT Modeler CONNECT Edition
        • -AutoPLANT Modeler V8i
          • +AutoPLANT Modeler [FAQ]
          • +Component - AutoPLANT Modeler
          • +Customization - AutoPLANT Modeler
          • +Database - AutoPLANT Modeler
          • +Errors, Logs, Messages, Crashes - AutoPLANT Modeler
          • -General - AutoPLANT Modeler
            • AP2OP Mapping Methodology – Generating Isometrics in OPIM via AutoPLANT
            • AutoPLANT Selection dialog unavailable
            • How to Add Drawing File to a Project through Relationship Manager
            • How to Change the Version of AutoCAD Used on Startup. AutoPLANT AT.ini
            • How to create a .STL file from AutoPLANT 3D Model for 3D Printing
            • How to Create a Briefcase Mode Drawing File in AutoPLANT Modeler
            • How to Create i-model from Inside AutoPLANT
            • How to Delete a Drawing File through Relationship Manager in AutoPLANT Modeler
            • How to Export a Drawing File from one Project to Another Project using Relationship Manager
            • How to Import a Drawing File from one Project to another Project using Relationship Manager
            • How to Package and Unpackage AutoPLANT Project
            • How to Package Several Projects Automatically Using CMD and Batch File
            • How to Remove Deleted Project Roots from AutoPLANT's Open Project Selection Dialog
            • How to Retrieve the Queries in AutoPLANT Advanced Selections Tab
            • Working With Plain AutoCAD When AutoPLANT Modeler is Installed
          • +Installation - AutoPLANT Modeler
          • Processing - AutoPLANT Modeler
          • +Settings/Attributes - AutoPLANT Modeler
          • +Tools - AutoPLANT Modeler
        • +AutoPLANT Piping
        • +AutoPLANT Equipment
        • +AutoPLANT I&W
        • +AutoPLANT P&ID
        • +AutoPLANT Isometrics
        • +AutoPLANT AutoISOGEN
        • +Bentley Data Manager
        • +Vision/Document Manager
        • +Drawing Flattener
        • +DataSheets
        • +Specification Generator
        • +ProjectWise Integration
      • +Bentley Navigator
      • +Bentley PlantSpace
      • +Plant Project Tools
      • +Bentley Raceway and Cable Management
      • i-model Composition Service for S3D
      • Working from home with OpenPlant
      • Working from home with Bentley Raceway and Cable Management
      • Working from home with AutoPLANT Modeler
    • How to Associate the Specification Based on Service in OpenPlant Modeler Connect

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

    How to Package Several Projects Automatically Using CMD and Batch File

    Applies To
    Product(s): AutoPLANT Modeler - Project Packager
    Version(s):
    Environment:  Windows 7/8.1/10 (64 bit)
    Area:  General
    Subarea: 
    Original Author: Kestutis Mitkus, Bentley Product Advantage Group

    Background

    When requirement raises to package several projects automatically, instead of going through the Project Packager Wizard for each project separately, there is possibility to use several commands in command window. In this Example a batch file will be created, which can be used to package required projects.

    Steps to Accomplish

    To package required project using command window, ProjectPackager.exe should be run with 6 command line parameters.

    Mode

    /P for packaging
    /U for unpackaging

    Zip File name and path C:\Testing Projects\Test1.zip
    Project Root C:\Testing Projects
    Project ID 0001
    User name Supervisor
    Password Supervisor

    1. Create *.bat file with commands in it to package required AutoPLANT projects:

      pushd C:\Program Files (x86)\Bentley\Plant V8i\Bin
      ProjectPackager.exe /P "C:\Testing Projects\Test1.zip" "C:\Testing Projects" 0001 Supervisor Supervisor
      ProjectPackager.exe /P "C:\Testing Projects\Test2.zip" "C:\Testing Projects" 0002 Supervisor Supervisor
      popd

    2. Open CMD and type in batch file running command:

      C:\Testing Projects\ProjectsPackager.bat


      If path contains directories with spaces in their names, then you might get same message. In this case a short path can be used instead. To check what Short path name is for required directory open CMD, go to required directory and with dir/x command populate information about all directories

      cd C:\
      dir/x



      In this example Short path name isTESTIN~1

      C:\TESTIN~1\ProjectsPackager.bat



    3. After launching this batch file all defined projects will be packaged one by one without need of going trough Project packaging wizard.

    Comments or Corrections?

    Bentley's Product Advantage Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU! 

    • automatically
    • AutoPLANT Modeler
    • Package Several Projects
    • cmd
    • batch file
    • project packager
    • Share
    • History
    • More
    • Cancel
    • Kestutis Mitkus Created by Bentley Colleague Kestutis Mitkus
    • When: Wed, May 17 2017 6:04 AM
    • Kestutis Mitkus Last revision by Bentley Colleague Kestutis Mitkus
    • When: Wed, May 17 2017 6:08 AM
    • Revisions: 3
    • Comments: 0
    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

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