need to create a toolbar to run a script file

Discussion in 'AutoCAD' started by A.Design, May 6, 2004.

  1. A.Design

    A.Design Guest

    Hi,

    I need to create a toolbar that can run a script file which is located on my
    desktop,would you please give me some information about this ?

    Thank you.
     
    A.Design, May 6, 2004
    #1
  2. wrong ng - should go to just customization with no vba but here you go:

    filedia;0;script;"drive:\patth\file.scr";filedia;1;

    with the "\" you may need to change them to either "\\' or "/" - sorry I
    can;t remember off hand
     
    Mike Tuersley, May 6, 2004
    #2
  3. A.Design

    Ed Jobe Guest

    I wrote a vba solution I call ScriptManager. It is a dialog front end for running/editing scripts. It allows a cadmgr to store global scripts in a read-only network dir and the user can store their own scripts in a local dir switching between the 2 with radio buttons. For editing and creating, the scripts are opened in Notepad. The New and Edit buttons are disabled when in the global dir.

    --
    ----
    Ed
    ----
    wrong ng - should go to just customization with no vba but here you go:

    filedia;0;script;"drive:\patth\file.scr";filedia;1;

    with the "\" you may need to change them to either "\\' or "/" - sorry I
    can;t remember off hand
     
    Ed Jobe, May 6, 2004
    #3
  4. A.Design

    A.Design Guest

    Thanks Mike
     
    A.Design, May 6, 2004
    #4
  5. A.Design

    Craig Guest

    Ed

    Is there any chance of getting a copy of your ScriptManager?

    Craig
    I wrote a vba solution I call ScriptManager. It is a dialog front end for running/editing scripts. It allows a cadmgr to store global scripts in a read-only network dir and the user can store their own scripts in a local dir switching between the 2 with radio buttons. For editing and creating, the scripts are opened in Notepad. The New and Edit buttons are disabled when in the global dir.

    --
    ----
    Ed
    ----
    wrong ng - should go to just customization with no vba but here you go:

    filedia;0;script;"drive:\patth\file.scr";filedia;1;

    with the "\" you may need to change them to either "\\' or "/" - sorry I
    can;t remember off hand
     
    Craig, May 7, 2004
    #5
  6. A.Design

    A.Design Guest

    Thanks Ed,


    Here it is.

    --
    ----
    Ed
    ----
    Ed

    Is there any chance of getting a copy of your ScriptManager?

    Craig
    I wrote a vba solution I call ScriptManager. It is a dialog front end for running/editing scripts. It allows a cadmgr to store global scripts in a read-only network dir and the user can store their own scripts in a local dir switching between the 2 with radio buttons. For editing and creating, the scripts are opened in Notepad. The New and Edit buttons are disabled when in the global dir.

    --
    ----
    Ed
    ----
    wrong ng - should go to just customization with no vba but here you go:

    filedia;0;script;"drive:\patth\file.scr";filedia;1;

    with the "\" you may need to change them to either "\\' or "/" - sorry I
    can;t remember off hand
     
    A.Design, May 7, 2004
    #6
  7. A.Design

    Craig Guest

    Thanx Ed
    Here it is.

    --
    ----
    Ed
    ----
    Ed

    Is there any chance of getting a copy of your ScriptManager?

    Craig
    I wrote a vba solution I call ScriptManager. It is a dialog front end for running/editing scripts. It allows a cadmgr to store global scripts in a read-only network dir and the user can store their own scripts in a local dir switching between the 2 with radio buttons. For editing and creating, the scripts are opened in Notepad. The New and Edit buttons are disabled when in the global dir.

    --
    ----
    Ed
    ----
    wrong ng - should go to just customization with no vba but here you go:

    filedia;0;script;"drive:\patth\file.scr";filedia;1;

    with the "\" you may need to change them to either "\\' or "/" - sorry I
    can;t remember off hand
     
    Craig, May 10, 2004
    #7
  8. A.Design

    Ed Jobe Guest

    Hope it helps.

    --
    ----
    Ed
    ----
    Thanx Ed
    Here it is.

    --
    ----
    Ed
    ----
    Ed

    Is there any chance of getting a copy of your ScriptManager?

    Craig
    I wrote a vba solution I call ScriptManager. It is a dialog front end for running/editing scripts. It allows a cadmgr to store global scripts in a read-only network dir and the user can store their own scripts in a local dir switching between the 2 with radio buttons. For editing and creating, the scripts are opened in Notepad. The New and Edit buttons are disabled when in the global dir.

    --
    ----
    Ed
    ----
    wrong ng - should go to just customization with no vba but here you go:

    filedia;0;script;"drive:\patth\file.scr";filedia;1;

    with the "\" you may need to change them to either "\\' or "/" - sorry I
    can;t remember off hand
     
    Ed Jobe, May 10, 2004
    #8
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.