You can use either Run or Exec method of the shell object
the example below uses the run method. Note that on Windows, %comspec% 
variable
points to the systems command shell (cmd.exe or command.exe)

Set Wsshell = Wscript.CreateObject("Wscript.Shell")
Wsshell.Run("%comspec% /k Perl.exe test.pl"),,vbTrue




Tony B. Okusanya



"Live Life By Design And Not From Crisis to Crisis"



<[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
06/25/2008 05:00 AM

To
<activeperl@listserv.activestate.com>
cc

Subject
Communication between Perl and VB script






Hi All,
 
         I want to call a Perl script ( assume test.pl )  in VB script 
(final.vbs). Is it possible to do this?
If it is, could you please send me a snippet of the code?
 
Thanks for great help. 
 
Regards,
Mustafa
 
Please do not print this email unless it is absolutely necessary. 
The information contained in this electronic message and any attachments 
to this message are intended for the exclusive use of the addressee(s) and 
may contain proprietary, confidential or privileged information. If you 
are not the intended recipient, you should not disseminate, distribute or 
copy this e-mail. Please notify the sender immediately and destroy all 
copies of this message and any attachments. 
WARNING: Computer viruses can be transmitted via email. The recipient 
should check this email and any attachments for the presence of viruses. 
The company accepts no liability for any damage caused by any virus 
transmitted by this email. 
www.wipro.com _______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

U.S. BANCORP made the following annotations
---------------------------------------------------------------------
Electronic Privacy Notice. This e-mail, and any attachments, contains 
information that is, or may be, covered by electronic communications privacy 
laws, and is also confidential and proprietary in nature. If you are not the 
intended recipient, please be advised that you are legally prohibited from 
retaining, using, copying, distributing, or otherwise disclosing this 
information in any manner. Instead, please reply to the sender that you have 
received this communication in error, and then immediately delete it. Thank you 
in advance for your cooperation.



---------------------------------------------------------------------

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to