Closing Wordpad

Discussion in 'AutoCAD' started by Jim Short, Jun 2, 2004.

  1. Jim Short

    Jim Short Guest

    Been a while since I was here.

    My app prints some text to a file then launches WordPad with that file. If I
    do not close WordPad first and do this again the wrong file remains
    displayed. What means do I have from VisualLisp to close this file first
    before I call it again?

    Thanks,
    Jim
     
    Jim Short, Jun 2, 2004
    #1
  2. Jim Short

    ECCAD Guest

    Try:
    (vlax-invoke-method notepad_app "Quit")
    (vlax-release-object notepad_app)
    (gc)

    Bob
     
    ECCAD, Jun 2, 2004
    #2
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.