Announcement

Collapse
No announcement yet.

execute vb scripts (feat req)

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • execute vb scripts (feat req)

    Hey guino, is it possible to allow RR to execute a VB script the same way as if i was pointing to an .exe. Right now it does nothing, not sure if this is a security issue or what not.

    thanks
    01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
    01101101 01101111 01101011 01100101

    beer replenishment fund
    http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
    mp3car live search

    i have joost invites, just hit me up for one.

  • #2
    you can try cscript.exe script_name.vbs
    iGMon - Integration between iGuidance and Road Runner
    CFX - Skin for Road Runner

    Comment


    • #3
      will give that try, never knew about cscript
      thanks
      01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
      01101101 01101111 01101011 01100101

      beer replenishment fund
      http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
      mp3car live search

      i have joost invites, just hit me up for one.

      Comment


      • #4
        ok, i kind of have this working, but with a few issues.

        1. there seems to be some odd thing happening when RR launches an app, im not sure why but its not the exact same thing as if i were to double click a file and launch it myself.

        When i run cscript and have it execute my vb script everything works fine and does what is expected. Since cscript is a command line tool, i wrote a autoIT script (compiled to .exe) to run cscript.exe and execute the vbscript. Again everything works fine and as expected.

        When i try to get RR to run cscript.exe it does not work. I know its launching the program but its not passing along the vbs to load. This was the main reason i wrote the autoit script and compiled to exe.
        Using that solution, RR still will not run the apps correctly. Using the autoITscript (compiled to .exe) RR will run the app, but for some reason cscript is trying to find the script in C:\Documents and Settings\liquid
        None of the scripts or anything anywhere says to look in that dir for anything, so im not sure why thats happening. Only happens when the app is launched by RR.

        any ideas?
        01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
        01101101 01101111 01101011 01100101

        beer replenishment fund
        http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
        mp3car live search

        i have joost invites, just hit me up for one.

        Comment


        • #5
          I think you must CD into the folder where your script is to ensure that it'll work. Your best bet is to write a BAT file that looks something like this.

          Code:
          c:
          cd \where your script is\
          start cscript.exe your_script.vbs
          Just save it as run.bat and execute it from RR.
          iGMon - Integration between iGuidance and Road Runner
          CFX - Skin for Road Runner

          Comment


          • #6
            It's probably where RR is launching the script from (the skin folder)..
            Ride Runner RR's Myspace

            "Being happy is not about having what you want, it's about wanting what you have."
            "The best things in life are always free - but that doesn't mean money can't buy you good things."

            Comment


            • #7
              Originally posted by b8bboi
              I think you must CD into the folder where your script is to ensure that it'll work. Your best bet is to write a BAT file that looks something like this.

              Code:
              c:
              cd \where your script is\
              start cscript.exe your_script.vbs
              Just save it as run.bat and execute it from RR.
              ill give this a try, i didnt think of using .bat files (so hooked on autoIT ;] )

              the path issue is the only thing holding me up right now.

              also, for anyone else thay may be familiar with cscript.exe, is there a way to run it quietly so i dont see the console window flash?

              thanks everybody for the tips.
              01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
              01101101 01101111 01101011 01100101

              beer replenishment fund
              http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
              mp3car live search

              i have joost invites, just hit me up for one.

              Comment


              • #8
                no dice

                the bat file works when i click on it, but i get a cant find file error when its run from inside RR
                01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
                01101101 01101111 01101011 01100101

                beer replenishment fund
                http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
                mp3car live search

                i have joost invites, just hit me up for one.

                Comment


                • #9
                  RUNQ in RR is supposed to run the application "hidden" as in not show the console window (or any other window).. question is, how exactly are you, or have you tried to run it from inside RR ?
                  Ride Runner RR's Myspace

                  "Being happy is not about having what you want, it's about wanting what you have."
                  "The best things in life are always free - but that doesn't mean money can't buy you good things."

                  Comment


                  • #10
                    well ive been using just the standard RUN command pointed at the .exe
                    I know about the RUNQ but didnt use it as i couldnt get RR to run cscript.exe and launch the vbscript on its own (without using autoIT compiled .exe or .bat files that in turn launch cscript.exe)

                    So i guess the real original issue is i cant get RR to pass options or switches on to a program that its launching, actually ive never been able to do that or really fully understood the proper syntax to use, the example that mentions it in skincommands.txt only really has an example of embeding a window.
                    01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
                    01101101 01101111 01101011 01100101

                    beer replenishment fund
                    http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
                    mp3car live search

                    i have joost invites, just hit me up for one.

                    Comment


                    • #11
                      you could try and formulate it like this:
                      cscript.exe c:\full\path\to\script.vbs
                      or even better put in the full path for both cscript and the vbs in autoit
                      That should do it I think

                      Comment


                      • #12
                        did you try this format: "RUN;COMMAND|PARAMETER1|PARAMETER2" ?
                        Ride Runner RR's Myspace

                        "Being happy is not about having what you want, it's about wanting what you have."
                        "The best things in life are always free - but that doesn't mean money can't buy you good things."

                        Comment


                        • #13
                          If the | doesn't work you can try " " as in

                          Code:
                          "RUN;cscript.exe" "your_script.vbs"
                          For some reason, the | doesn't work for me so I always use the above format when setting command line options.
                          iGMon - Integration between iGuidance and Road Runner
                          CFX - Skin for Road Runner

                          Comment


                          • #14
                            Is it possible to do some VbScripting directly within RR, that would be a really useful feature

                            Comment


                            • #15
                              Originally posted by at_b
                              you could try and formulate it like this:
                              cscript.exe c:\full\path\to\script.vbs
                              or even better put in the full path for both cscript and the vbs in autoit
                              That should do it I think
                              ive tried all of those, and they all work outside of RR.
                              01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
                              01101101 01101111 01101011 01100101

                              beer replenishment fund
                              http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
                              mp3car live search

                              i have joost invites, just hit me up for one.

                              Comment

                              Working...
                              X