+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Junior Member
    Using
    AutoCAD 2009
    Join Date
    Jul 2012
    Posts
    17

    Default Problem with startapp command

    Registered forum members do not see this ad.

    Who'd have thought there I'd have so many questions. I read an article just now which suggested using the startapp command in one of my custom menu items like this:

    ^C^C^P(startapp "explorer" (getvar "dwgprefix")

    While this does open Windows Explorer it still does not allow me to open it up with the desired folder location. But I'm still working on that one.

    So this morning I tried this:

    ^C^C^P(startapp "H:\my_program.exe")

    When I selected the option in our new pull-down menu nothing really happened. It just kind of sat there. So I did this on the command line:

    (startapp "H:\my_program.exe")

    and it opened up just fine. I can't seem to find why it will not work from the menu item but it will from the command line.

  2. #2
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,041

    Default

    I'm afraid that there are some syntax issues:
    Code:
    (startapp "explorer" (getvar "dwgprefix"))
    Code:
    (startapp "H:\\my_program.exe")
    Also, don't forget to end the above macros with a space.
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

  3. #3
    Junior Member
    Using
    AutoCAD 2009
    Join Date
    Jul 2012
    Posts
    17

    Default

    Oh yes, that would be a problem. I also discovered the forward slash in lieu of backslash issue or double backslash. Thank you for your kind assistance.

  4. #4
    Super Moderator SLW210's Avatar
    Computer Details
    SLW210's Computer Details
    Operating System:
    Windows 7 PRO
    Computer:
    IBM Lenovo
    Motherboard:
    ACPI x86
    CPU:
    Pentium(R) Dual-Core CPU E5500 @ 2.80GHz
    RAM:
    4 GB RAM
    Graphics:
    Nvidia Quadro 600 1GB
    Primary Storage:
    300 GB
    Secondary Storage:
    650GB
    Monitor:
    ThinkVision 22"
    Discipline
    Multi-disciplinary
    SLW210's Discipline Details
    Occupation
    Design Draftsman
    Discipline
    Multi-disciplinary
    Details
    Mostly do drafting related to manufacturing. From doing site layouts with proposed updates, additions and renovations to be budgeted and submitted for bid, to updating and changing existing drawings to reflect maintenance and repair/revision work done on site.
    Using
    AutoCAD 2011
    Join Date
    May 2007
    Location
    South Florida, USA
    Posts
    9,203

    Default

    Brenda Tanner,

    Please read the CODE POSTING GUIDELINES and edit your post to include code tags.
    “A narrow mind and a fat head invariably come on the same person” Zig Zigler



  5. #5
    Junior Member
    Using
    AutoCAD 2009
    Join Date
    Jul 2012
    Posts
    17

    Default

    Registered forum members do not see this ad.

    Thank you for the advice. I will read the suggested guidelines right away. Thanks for all the assistance thus far.

Similar Threads

  1. StartApp Question
    By harrison-matt in forum AutoLISP, Visual LISP & DCL
    Replies: 13
    Last Post: 16th Nov 2010, 09:33 pm
  2. New Command Problem?!?
    By Deathtime in forum AutoCAD General
    Replies: 4
    Last Post: 24th Jul 2008, 10:33 pm
  3. Problem with the @ command
    By ADS in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 1
    Last Post: 27th May 2008, 03:40 pm
  4. (command) problem
    By NCDesign in forum AutoLISP, Visual LISP & DCL
    Replies: 5
    Last Post: 2nd Aug 2007, 03:51 pm
  5. Windows System Command start vs startapp
    By ImaJayhawk in forum AutoLISP, Visual LISP & DCL
    Replies: 1
    Last Post: 26th Feb 2004, 09:03 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts