Menu item to open HTML from server location

Discussion in 'AutoCAD' started by ccyc, Mar 22, 2005.

  1. ccyc

    ccyc Guest

    Hello - I have another question:

    I am trying to add a menu item that will open an HTML file from a location on the server. The file path, in this case on our S drive, is added to the Support File Paths.

    I have tried several things, here are a few of them:

    **Lisp [JST Lisp Help]^C^C^P(command "_browser" (findfile "Help_JST-Lisp.html"))
    **Lisp [Edit MyMenu]^C^C^P(command"_browser"(S:\_AutoCad 2005 Settings\Lisp\Help_JST-Lisp.html")) ^P
    **Lisp [Test]^C^C(command "_browser" Help_JST-Lisp.html )
    ID_atweb [Testarcht]^C^C_browser "S:\\_AUTOCAD 2005 SETTINGS\\LISP\\Help_JST-Lisp.html"
    ID_atweb [Testarcht2]^C^C_browser (findfile "Help_JST-Lisp.html")
    ID_atweb [shell]^C^C_shell (S:\_AutoCad 2005 Settings\Lisp\Help_JST-Lisp.html)

    The last one stops at S:

    Not sure what I'm doing wrong, obviously.
    Any help would be greatly appreciated,
    Chris
     
    ccyc, Mar 22, 2005
    #1
  2. ccyc

    Daron Guest

    use "/" instead of "\"


    on the server. The file path, in this case on our S drive, is added to the
    Support File Paths.
    Settings\Lisp\Help_JST-Lisp.html")) ^P
     
    Daron, Mar 22, 2005
    #2
  3. ccyc

    Daron Guest

    sorry, i didn't look close enough. you will need more than that as you are
    using the shell command in that line.

    i'm surprised the others are working at all with the single "\" in lisp. you
    may want to take a closer look. a "\" is interpreted very different in lisp,
    and "\\" in a menu should comment out the rest of that line.

     
    Daron, Mar 22, 2005
    #3
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.