Solved

How to execute *.mst (scripts) in visual basic ?

Posted on 2004-04-13
4
184 Views
Last Modified: 2013-11-25
Hey,
        Can someone tell me how to run *.mst (script files) through code. The mst file was written in Rational Visual Test and I need to know how to execute that file through code in VB. Please answer as soon as possible. Thanks in advance.
0
Comment
Question by:gohulanb
4 Comments
 
LVL 49

Expert Comment

by:Ryan Chong
ID: 10819925
Try use ShellExecute API?

Example:

Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Public Function StartDoc(ByVal FileName As String, Optional CommandLine As String = "") As Long
    StartDoc = ShellExecute(0&, "Open", FileName, CommandLine, vbNullString, 1)
End Function

then use like:

StartDoc "c:\test.mst"

Let me know if it's not working, regards
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 11441095
PAQed - no points refunded (of 125)

Netminder
Site Admin
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to debug this code 7 56
How to produce a SHA-1 hash function in vb6 in order to save it to a table 8 36
Spell Check in VB6 13 95
TT Auto Dashboard 13 79
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now