Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

system call in VB

Posted on 2002-07-02
7
Medium Priority
?
661 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses

618 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