Create a Directory with LISP

Discussion in 'AutoCAD' started by Cristian Leon, Nov 2, 2004.

  1. Hi everyone:

    I would ask you if you know how to create a Directory with AutoLISP (if you know any function or if you have a lisp routine)

    I tried with (open [file] "w") (where [file] is in a directory that could or not exist... if it don't exist, then the lisp don't create the file). So, i think i must first create the directory path first and then i create the file i need.

    When i tried with (vl-file-copy ... ) it doesn't work for the same reason.

    Thanks

    Cristian Leon
    Chile
     
    Cristian Leon, Nov 2, 2004
    #1
  2. Cristian Leon

    ECCAD Guest

    Use DOS Lib from McNeal & Associates.
    Sample:
    (dos_mkdir "c:\\temp\\autocad\\drawings\\project")

    Bob
     
    ECCAD, Nov 2, 2004
    #2
  3. Cristian Leon

    Jürg Menzi Guest

    Hi Cristian

    Visit my homepage -> Free Stuff and search for 'VxMakeDirectory'. In opposite
    to 'vl-mkdir' you can create multiple level deep directories.

    Cheers
     
    Jürg Menzi, Nov 2, 2004
    #3
  4. Cristian Leon

    Netrouter Guest

    Netrouter, Nov 2, 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.