Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Scripting / November 2005

Tip: Looking for answers? Try searching our database.

How to call VBScript from VB.NET ???

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul Wallis - 30 Jun 2003 11:04 GMT
Hi,
Can anyone tell be how to call a function / method in a .NET VBScript from
my VB.net project?

Thanks in anticipation,
PJW
Robert Cohen - 30 Jun 2003 18:25 GMT
When I asked last week, I was told:

Process.Start("C:\test.vbs")

and that works fine.  I will want to know if I can have the script as a part
of the application rather than linking to an external script.

--
My E-mail address is close to rcohen@yourfears.bbhtx.org.  If you
need to e-mail me off list just get rid of "your fears" and
drop me a line.

> Hi,
> Can anyone tell be how to call a function / method in a .NET VBScript from
> my VB.net project?
>
> Thanks in anticipation,
> PJW
Sarah - 15 Nov 2005 21:51 GMT
Process.Start("c:\test.vbs") works fine for running a local scrip
locally, or even a remote script locally. Does anyone know how to run
remote script remotely? I have a small vbscript that has to be run o
the server is located on, but is called by a .net application with man
remote users

--
Sara
Joachim Verhagen - 16 Nov 2005 20:44 GMT
>Process.Start("c:\test.vbs") works fine for running a local script
>locally, or even a remote script locally. Does anyone know how to run a
>remote script remotely? I have a small vbscript that has to be run on
>the server is located on, but is called by a .net application with many
>remote users.

Never found a direct way, but I know some workarounds.

As far as I know there are two tricks.  One is creating a service that calls
the cscript test.vbs and start the service remotely.  Never tried it with
scripts, but it should work.

The second way is using psexec from sysinternals
(http://www.sysinternals.com) It starts command line programs on a remote
server.

Hope this helps.

Joachim.
Signature

This post is free post; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
   
Joachim Verhagen
http://www.xs4all.nl/~jcdverha/  (Science Jokes)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.