NEED TO RUN A SCRIPT FILE FROM A TOOLBAR BUTTON

Discussion in 'AutoCAD' started by SKUMAR, Jul 30, 2003.

  1. SKUMAR

    SKUMAR Guest

    Hello,
    Is there a way I can automatically run a script file(located in my docs dir)directly from a toolbar button?

    thanks
    Sanjiv
     
    SKUMAR, Jul 30, 2003
    #1
  2. SKUMAR

    Paul Turvill Guest

    ^C^Cscript;Path/MyScript;
    ___

    dir)directly from a toolbar button?
     
    Paul Turvill, Jul 30, 2003
    #2
  3. SKUMAR

    SKUMAR Guest

    Thanks but I am still getting an error.
    This is what I have:

    ^C^Cscript;C:\Documents and Settings\skumar\My Documents\ACAD SCRIPT\Delete_All_Apply_New_PC3_Script.scr;

    Thanks again
    Sanjiv
     
    SKUMAR, Jul 30, 2003
    #3
  4. SKUMAR

    Paul Turvill Guest

    Your path has spaces in it. You need to enclose it in double quotes:

    ^C^Cscript;"C:\Documents and Settings\skumar\My Documents\ACAD
    SCRIPT\Delete_All_Apply_New_PC3_Script.scr";
    ___

    SCRIPT\Delete_All_Apply_New_PC3_Script.scr;
     
    Paul Turvill, Jul 30, 2003
    #4
  5. SKUMAR

    SKUMAR Guest

    It works!
    Thank you very much Paul.

    Sanjiv
     
    SKUMAR, Jul 31, 2003
    #5
  6. SKUMAR

    Paul Turvill Guest

    You're welcome, Sanjiv.
    ___
     
    Paul Turvill, Jul 31, 2003
    #6
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.