?
Solved

system call in VB

Posted on 2002-07-02
7
Medium Priority
?
649 Views
Last Modified: 2012-06-21
Hi

I'm looking for a system call in VB, to execute an outside application.

In C programming I can use: system([application name]).

Please help
0
Comment
Question by:lirong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 4

Expert Comment

by:Steve Sirica
ID: 7125169
If it's an exe then the easiest way is to use the "shell" command.
0
 
LVL 4

Expert Comment

by:Steve Sirica
ID: 7125178
There are more elaborate/involved ways to accomplish the same thing shell does.  Hard to tell exactly what your trying to do...you were a bit vague in your question.
0
 
LVL 6

Expert Comment

by:marconovaro
ID: 7125210

As SSirica said, you can use the shell() function to execute an external program. But this executes the program and does not wait for it to terminate.

But, I think that the system() call in C is syncronous; if so, you can use:

Declare Function FSyncShell Lib "STKIT432.DLL" Alias "SyncShell" (ByVal strCmdLine As String, ByVal intCmdShow As Long) As Long

if you want to "shell and wait" you application to be completed.
Hope this helps you.
Marco
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Accepted Solution

by:
Ber earned 200 total points
ID: 7125520
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7125820
FSyncShell!, every day i learn something new (to me)
:)
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7971234
Hi lirong,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept Ber's comment(s) as an answer.

lirong, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 8018775
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month11 days, 14 hours left to enroll

752 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