• 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. running a batch command like pkzip inside Skill

Stats

  • Replies 4
  • Subscribers 160
  • Views 13946
  • Members are here 0
More Content

running a batch command like pkzip inside Skill

Ejlersen
Ejlersen over 16 years ago

Hi,

I'm looking for a method to be able to run a batch command inside skill. I'm not talking about running an Allegro batch command, but thirdparty batch commands.

Does anyone know if this is doable?

 

Best regards,

Ole

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

    Hi All,

    No need to worry. I found the solution

    I can use axlShell to run a shell command e.g., axlShell( "shell pkzip zipfile.zip *.art")

    Best regards,

    Ole

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • kumarsanj
    kumarsanj over 6 years ago in reply to Ejlersen

    Hi Ole,

    Could you please share the code, I was willing to zipp the files using "7-ZIP".

    Thanks,

    Sanjeev

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Ejlersen
    Ejlersen over 6 years ago in reply to kumarsanj

    Hi Sanjeev

    I can share the zipping part of my code, but it has changed and I'm using another method now.

    destination = axlOSSlash(strcat(getWorkingDir() "/" outdir "/" project_name ".zip"))

    source = axlOSSlash(strcat(getWorkingDir() "/" outdir))

    sprintf(cmddata "cmd /c cdszip -q -j -r \"%s\" \"%s/*.*\" -x \"%s/*.*\"" destination source source)

    axlRunBatchDBProgram("Zip data" cmddata ?noUnload t ?silent t ?noProgress t)

    where outdir is a subdirectory name below the board directory and project_name is the board design name.

    I hope this helps

    Ole

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • kumarsanj
    kumarsanj over 6 years ago in reply to Ejlersen

    Thank You Ole for providing the code and details. Yeah certainly it will help me.

    Regards,

    Sanjeev

    • 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