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 / General / July 2004

Tip: Looking for answers? Try searching our database.

Executing a VB Script file from VB.net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
J. Kingsley - 30 Jul 2004 08:17 GMT
I am loading XML data into a SQL Server database using SQLXML with bulkload. I use a VB script file to perorm the load with the map schemas and the XML files. To do the load manually, you just double click on the VB script file which lies in a directory on the hard drive. Now I want to execute this file from a VB application or a Windows service. How do I call, reference or execute the file from VB.net?
David Williams , VB.NET MVP - 30 Jul 2004 13:25 GMT
You should be able to use Process.Start("SQL.VBS") [Where you replace
"SQL.VBS" with your named .vbs file] to run the script file.

HTH

David

> I am loading XML data into a SQL Server database using SQLXML with
> bulkload. I use a VB script file to perorm the load with the map schemas and
> the XML files. To do the load manually, you just double click on the VB
> script file which lies in a directory on the hard drive. Now I want to
> execute this file from a VB application or a Windows service. How do I call,
> reference or execute the file from VB.net?
J. Kingsley - 30 Jul 2004 14:15 GMT
Thanks, it works! A simple piece of code, but you saved me a lot of time.

> You should be able to use Process.Start("SQL.VBS") [Where you replace
> "SQL.VBS" with your named .vbs file] to run the script file.
[quoted text clipped - 9 lines]
> > execute this file from a VB application or a Windows service. How do I call,
> > reference or execute the file from VB.net?

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.