Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: execute vb scripts (feat req)

  1. #1
    SMKFree liquid_smoke's Avatar
    Join Date
    Aug 2003
    Location
    Chicago
    Posts
    4,842

    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/rr-faq/
    mp3car live search

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

  2. #2
    FLAC
    Join Date
    May 2005
    Location
    Vienna, VA
    Posts
    1,375
    you can try cscript.exe script_name.vbs

  3. #3
    SMKFree liquid_smoke's Avatar
    Join Date
    Aug 2003
    Location
    Chicago
    Posts
    4,842
    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.

  4. #4
    SMKFree liquid_smoke's Avatar
    Join Date
    Aug 2003
    Location
    Chicago
    Posts
    4,842
    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.

  5. #5
    FLAC
    Join Date
    May 2005
    Location
    Vienna, VA
    Posts
    1,375
    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.

  6. #6
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    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."

  7. #7
    SMKFree liquid_smoke's Avatar
    Join Date
    Aug 2003
    Location
    Chicago
    Posts
    4,842
    Quote 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.

  8. #8
    SMKFree liquid_smoke's Avatar
    Join Date
    Aug 2003
    Location
    Chicago
    Posts
    4,842
    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.

  9. #9
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    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."

  10. #10
    SMKFree liquid_smoke's Avatar
    Join Date
    Aug 2003
    Location
    Chicago
    Posts
    4,842
    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.

Page 1 of 2 12 LastLast

Similar Threads

  1. desktop mode (feat req)
    By liquid_smoke in forum Road Runner
    Replies: 2
    Last Post: 03-28-2006, 12:01 PM
  2. date labels feat req
    By liquid_smoke in forum Road Runner
    Replies: 3
    Last Post: 12-30-2005, 11:58 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •