Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


is there a way to run vbs from another language?

 
Logged in as: Guest
arrSession:exec spGetSession 2,7,64054
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> is there a way to run vbs from another language?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 is there a way to run vbs from another language? - 9/4/2008 3:48:57 PM   
  jloyzaga

 

Posts: 13
Score: 0
Joined: 9/24/2007
Status: offline
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.

 
 
Post #: 1
 
 RE: is there a way to run vbs from another language? - 9/4/2008 11:47:20 PM   
  mbouchard


Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
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.

(in reply to jloyzaga)
 
 
Post #: 2
 
 RE: is there a way to run vbs from another language? - 10/22/2008 8:42:30 AM   
  jloyzaga

 

Posts: 13
Score: 0
Joined: 9/24/2007
Status: offline
Lets start with just command line first
OR what language would you suggest

(in reply to mbouchard)
 
 
Post #: 3
 
 RE: is there a way to run vbs from another language? - 10/22/2008 8:44:15 AM   
  jloyzaga

 

Posts: 13
Score: 0
Joined: 9/24/2007
Status: offline
Actually I would like any advice at all (my preference woud be python)

(in reply to mbouchard)
 
 
Post #: 4
 
 RE: is there a way to run vbs from another language? - 10/22/2008 8:52:45 AM   
  ebgreen


Posts: 5047
Score: 31
Joined: 7/12/2005
Status: offline
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

(in reply to jloyzaga)
 
 
Post #: 5
 
 RE: is there a way to run vbs from another language? - 10/25/2008 10:24:02 PM   
  DiGiTAL.SkReAM


Posts: 1184
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
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

(in reply to ebgreen)
 
 
Post #: 6
 
 RE: is there a way to run vbs from another language? - 10/26/2008 11:54:41 AM   
  ebgreen


Posts: 5047
Score: 31
Joined: 7/12/2005
Status: offline
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

(in reply to DiGiTAL.SkReAM)
 
 
Post #: 7
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> is there a way to run vbs from another language? Page: [1]
Jump to:





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
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts