Launch a macro or windows program from menu or button

Launch a macro or windows program from menu or button

35
Basic UserBasic User
35

    May 29, 2006#1

    Hi-

    Is there a way for me to run a specific macro or a specific windows program via a custom menu selection and a custom (toolbar) button?

    With Regards-
    Sam

    6,675585
    Grand MasterGrand Master
    6,675585

      May 30, 2006#2

      Windows programs - yes, if you set up a user tool for every program. Macros - no, use the macro list view.
      Best regards from an UC/UE/UES for Windows user from Austria

      35
      Basic UserBasic User
      35

        May 31, 2006#3

        Hi Mofi-
        Thanks for your post.
        I used Tool Configuration and inserted a user tool:

        For Command Line, I browsed to the vbs script that I want to run. I then checked Windows Program.

        Launching it results in "Error creating process193".

        I found another post where you had advised adding %F which I tried - but with same result.

        Any idea what I am doing wrong?

        With Regards-
        Sam

        6,675585
        Grand MasterGrand Master
        6,675585

          May 31, 2006#4

          A vbs file is not a program, it is only a script file and needs an interpreter for execution. For Windows XP it is WScript.exe. The correct command line to execute your vbs file would be

          C:\Windows\System32\WScript.exe "name of your script file with path"

          or if you want to run the vbs file currently open in UltraEdit

          C:\Windows\System32\WScript.exe "%f"

          And wscript.exe is a Windows program. So don't forget to select the "Windows Program" option in the tool configuration dialog.
          Best regards from an UC/UE/UES for Windows user from Austria

          35
          Basic UserBasic User
          35

            Jun 01, 2006#5

            Thanks Mofi - I appreciate your help.

            With Regards-
            Sam