is there a way to run vbs from another language?

Author Message
jloyzaga

  • Total Posts : 77
  • Scores: 0
  • Reward points : 0
  • Joined: 9/24/2007
  • Status: offline
is there a way to run vbs from another language? Thursday, September 04, 2008 4:48 PM (permalink)
0
I have this suite of vbs scripts - the master one says Call Driver
The driver is the one that runs a loop of calls to other vbs scripts - how can I run the Driver and have the other vbs scripts called by it?
 
This may sound vague but I think I'm still searching for a way to do this and even the most complex solution is at least A solution.
 

 
#1
    mbouchard

    • Total Posts : 2110
    • Scores: 29
    • Reward points : 0
    • Joined: 5/15/2003
    • Location: USA
    • Status: offline
    RE: is there a way to run vbs from another language? Friday, September 05, 2008 12:47 AM (permalink)
    0
    What language are you planning on running Call driver from? I do not see any issue with calling a script from any language
    Mike

    For useful Scripting links see the Read Me First stickey!

    Always remember Search is your friend.
     
    #2
      jloyzaga

      • Total Posts : 77
      • Scores: 0
      • Reward points : 0
      • Joined: 9/24/2007
      • Status: offline
      RE: is there a way to run vbs from another language? Wednesday, October 22, 2008 9:42 AM (permalink)
      0
      Lets start with just command line first
      OR what language would you suggest
       
      #3
        jloyzaga

        • Total Posts : 77
        • Scores: 0
        • Reward points : 0
        • Joined: 9/24/2007
        • Status: offline
        RE: is there a way to run vbs from another language? Wednesday, October 22, 2008 9:44 AM (permalink)
        0
        Actually I would like any advice at all (my preference woud be python)
         
        #4
          ebgreen

          • Total Posts : 8227
          • Scores: 98
          • Reward points : 0
          • Joined: 7/12/2005
          • Status: offline
          RE: is there a way to run vbs from another language? Wednesday, October 22, 2008 9:52 AM (permalink)
          0
          For any given language, do whatever you need to do to spawn a process with this as the process command:

          CScript.exe Foo.vbs


          Where Foo.vbs is the script.

          For Python you have to decide if you want to spawn a child process or execute in the same process as the python script. I haven't done this in Python in a while but I think it would be something like:

          execl("CScript.exe, "C:\Path\To\Script.vbs")

          or to spawn it as a child process use one of the spawn* functions.


          "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
          Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
          http://www.visualbasicscript.com/m_47117/tm.htm
           
          #5
            DiGiTAL.SkReAM

            • Total Posts : 1259
            • Scores: 7
            • Reward points : 0
            • Joined: 9/7/2005
            • Location: Clearwater, FL, USA
            • Status: offline
            RE: is there a way to run vbs from another language? Saturday, October 25, 2008 11:24 PM (permalink)
            0
            ebgreen,
             
            I think it was one of the other admins that said you were working on porting vbscript to run natively under linux.
            How's that coming along?
            "Would you like to touch my monkey?" - Dieter (Mike Meyers)

            "It is better to die like a tiger, than to live like a pussy."
            -Master Wong, from Balls of Fury
             
            #6
              ebgreen

              • Total Posts : 8227
              • Scores: 98
              • Reward points : 0
              • Joined: 7/12/2005
              • Status: offline
              RE: is there a way to run vbs from another language? Sunday, October 26, 2008 12:54 PM (permalink)
              0
              Not something I was working on. I don't see any need to make it run on Linux.
              "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
              Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
              http://www.visualbasicscript.com/m_47117/tm.htm
               
              #7

                Online Bookmarks Sharing: Share/Bookmark

                Jump to:

                Current active users

                There are 0 members and 1 guests.

                Icon Legend and Permission

                • New Messages
                • No New Messages
                • Hot Topic w/ New Messages
                • Hot Topic w/o New Messages
                • Locked w/ New Messages
                • Locked w/o New Messages
                • Read Message
                • Post New Thread
                • Reply to message
                • Post New Poll
                • Submit Vote
                • Post reward post
                • Delete my own posts
                • Delete my own threads
                • Rate post

                2000-2012 ASPPlayground.NET Forum Version 3.9