Run a bat file from lisp?

Discussion in 'AutoCAD' started by hutch, Jul 15, 2004.

  1. hutch

    hutch Guest

    I have a MS dos bat file that I run via lisp with the startapp.
    I am running windows 2000 professional.
    I have created a shortcut (pif file) for the bat.
    I have tried repeatedly to set up the bat so that it runs minimized without success.
    The properties dialog of the file has tabs as follows:
    General, Shortcut, Options, Font, Layout, and Colors
    The Shortcut tab has a Run option with choices:
    Normal window, Minimized, Maximized. But the Options tab has display options: Window and Full Screen. But no option to run minimized. This is contradictory.

    What am I missing?
     
    hutch, Jul 15, 2004
    #1
  2. hutch

    zeha Guest

    Question?

    if the batch file representing only dos commando's you
    could find the solution to do it
    with the DOSlib from mcneel they are great

    there also many dos command available in Vlisp
    like
    vl-file-copy
    vl-file-delete
    vl-mkdir
    vl-file-rename

    Hope this help's
     
    zeha, Jul 15, 2004
    #2
  3. hutch

    gert Guest

    maybe it helps
    (command "_shell" "mybat")

    mfg
     
    gert, Jul 15, 2004
    #3
  4. hutch

    Josh Guest

    Actually, DOSLib has a direct execute function to do exactly what is
    requested:

    ex. (dos_execute "C:\\test.bat" 2); runs test.bat minimized
     
    Josh, Jul 15, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.