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)
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.
|
|
|
|
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)
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.
|
|
|
|
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)
Lets start with just command line first OR what language would you suggest
|
|
|
|
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)
Actually I would like any advice at all (my preference woud be python)
|
|
|
|
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)
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.
|
|
|
|
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)
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
|
|
|
|
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)
Not something I was working on. I don't see any need to make it run on Linux.
|
|
|
|