startapp in 2007

Discussion in 'AutoCAD' started by Pete, May 7, 2006.

  1. Pete

    Pete Guest

    Why does this work from the command line:
    (startapp "c:\\program files\\microsoft office\\office\\winword.exe")

    but if assigned to a button on a toolbar, the slashes have to be reversed to make it function:
    (startapp "c://program files//microsoft office//office//winword.exe")
    otherwise, the command line hangs at (startapp "c:
     
    Pete, May 7, 2006
    #1
  2. Pete

    Pete Guest

    Thanks. I'm quite familiar with that control character but I was just
    curious why the entry on the command line and the same entry for a button
    would behave differently.

    From a macro, AutoCAD reads the first \ as a pause for input, because it is
    a control character... See Help file, Customization, control character.

    --

    Gilbert L. “Chip” Harper


    Web: http://www.hot4cad.com
     
    Pete, May 11, 2006
    #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.