• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. Shell Command Window

Stats

  • Replies 11
  • Subscribers 160
  • Views 20374
  • Members are here 0
More Content

Shell Command Window

jmwilk
jmwilk over 16 years ago

Hi All,

Is there anyway using skill to run shell commands so the command window is minimalized or in background mode so that the command window doesn't appear to the user...?

 Thanks,

 JMWilk

  • Sign in to reply
  • Cancel
  • eDave
    eDave over 16 years ago

    I always try to us axlRunBatchDBProgram instead of running shell commands. Yes, it gives you the ability to hide the window.

    Cheers, Dave

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jmwilk
    jmwilk over 16 years ago

    Hi Dave,

    Thanks for the quick response... axlRunBatchDBProgram() is exactly what I would like to implement... I am trying a quick example:

         axlRunBatchDBProgram("shell"
                    "copy 
                    file1.text
                    file2.text"
          ?startMsg "Copying File"
             )

     This is returning  E- Unable to start program; shell
    -127

     Error... Can you assist...?

     Thanks,

     JMWilk

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 16 years ago

    Copy is an unfortunate example because there is no executable or bat file by that name.

    You would need to create a batch file named copy.bat for this to work.You should also use the ?noUnload t option.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fxffxf
    fxffxf over 16 years ago

     the copy feature is built-in to cmd.exe. If all you want is to copy a file do, use an axl API.

       axlOSFileCopy("file1.text" "file2.txt" nil)

     

    If using the axlRunBatchDBProgram as a replacement for shell. I would always add two optons since you are not using the API to read or write the Allegro database.

        axlRunBatchDBProgram("<name>"  "<cmd to run>" ?noUnload t ?silent t)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jmwilk
    jmwilk over 16 years ago

    Hi All, 

    Just a quick question for you concerning the axlRunBatchDBProgram... The documentation for this function is very limited in its use... Meaning there isn't a good set of examples to go by... Can other axl functions be called/run using the axlRunBatch function...? If so, can you point to a few good examples... I would like to run axlExtractToFile function in batch but I cannot figure out how to write the code for this if it is possible...

    JMWilk

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
>
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information