Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
CUBE
  • Product Communities
  • Mobility Simulation
  • CUBE
  • Cancel
CUBE
CUBE Wiki How to execute the DOS batch file (*.BAT) through the Voyager PILOT program?
    • Sign In
    • Wiki
    • -CUBE
      • +Announcements
      • +CUBE CONNECT Edition
      • -Cube 6
        • +Installation
        • +Licensing for CUBE 6.1.1
        • +Licensing for CUBE 6.4.x
        • +Base
        • -Voyager
          • How to log variables and read files with user specified variables?
          • +HIGHWAY
          • +PUBLIC TRANSPORT (PT)
          • +MATRIX
          • +NETWORK
          • -PILOT
            • How to execute the DOS batch file (*.BAT) through the Voyager PILOT program?
          • Changing temp file folder location for MATRIX/HIGHWAY programs
          • +DISTRIBUTION
        • +Avenue
        • +Analyst
        • +Analyst Drive
        • +Land
        • +Cargo
        • +Cluster
      • CUBE Access (formerly Sugar Access)
      • +Learning CUBE

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

    How to execute the DOS batch file (*.BAT) through the Voyager PILOT program?

    Product(s): Cube
    Version(s): 6.1 to 6.5
    Area: Other

    A batch file (.BAT) is a script file in DOS, OS/2 and Microsoft Windows. It consists of a series of commands to be executed by the command-line interpreter, stored in a plain text file. A batch file may contain any command the interpreter accepts interactively and use constructs that enable conditional branching and looping within the batch file, such as IF, FOR, and GOTO labels. The term "batch" is from batch processing, meaning "non-interactive execution", though a batch file may not process a batch of multiple data. Occasionally, there are users who would like to implement and execute these files in their models. The attached zip file includes the below Cube catalog example to show how to execute the DOS batch file (.BAT) through the Voyager PILOT program.

    Solution

    The DOS batch file can be executed easily if both the PILOT program (.S) and the DOS batch file (.BAT) are located in the same folder. But, if those files are located in the different folders separately, the DOS batch file (.BAT) should include the DOS command (e.g. ‘CD’) process to change the folder position before performing the Voyager scripts (.S) or any customized programs. As the attached examples, there are two options to change the folder position from the folder (e.g. ‘{Catalog_Dir}\Model’) with the PILOT program (.S) to the folder (e.g. ‘{Catalog_Dir}\Input_Data’) with the batch file (.BAT).

    TEST_Batch_Run.zip

    • Share
    • History
    • More
    • Cancel
    • Vu Dang Created by Bentley Colleague Vu Dang
    • When: Fri, Mar 27 2020 4:18 PM
    • Vu Dang Last revision by Bentley Colleague Vu Dang
    • When: Tue, Feb 14 2023 4:29 PM
    • Revisions: 4
    • 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

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