• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Visual LISP, AutoLISP and General Customization

    Reply
    New Member
    Posts: 1
    Registered: ‎05-01-2012

    Running VB Script from Lisp

    251 Views, 1 Replies
    05-02-2012 05:43 AM

    I am trying to manage my support paths, this includes printer support paths, with a VB Script file.  Is there anyway to get this .vbs file to run from within my acad.lsp file?  I have attached both my script files and my lisp file for reference.

     

    I would think that this could be done but all I can seem to find is how to run VBA code in lisp.  I just need to make a call and have the file run silently.  Any help with this would be greatly apreciated.

     

    Thank you,

    Chris Kitzmann

    .: Chris Kitzmann :.
    Please use plain text.
    Member
    Posts: 3
    Registered: ‎05-03-2012

    Re: Running VB Script from Lisp

    05-09-2012 06:42 AM in reply to: chris.kitzmann

    You could use the acet-sys-spawn function to spawn an external process.

     

    This example launches notepad from Autolisp.

     

    (acet-sys-spawn 0 "notepad.exe")

     

    To run a VBS you will have to experiment with the windows START command or by calling CMD.exe

     

     

    Please use plain text.