Quantcast
Channel: OpenPlant | AutoPLANT
Viewing all articles
Browse latest Browse all 12277

Wiki Page: How to Package Several Projects Automatically Using CMD and Batch File

$
0
0
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 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 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 is TESTIN~1 C:\TESTIN~1\ProjectsPackager.bat 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!

Viewing all articles
Browse latest Browse all 12277

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>