[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 670
  • Last Modified:

system call in VB

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
lirong
Asked:
lirong
1 Solution
 
Steve SiricaSenior Web Application EngineerCommented:
If it's an exe then the easiest way is to use the "shell" command.
0
 
Steve SiricaSenior Web Application EngineerCommented:
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
 
marconovaroCommented:

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.

 
Richie_SimonettiIT OperationsCommented:
FSyncShell!, every day i learn something new (to me)
:)
0
 
DanRollinsCommented:
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
 
SpideyModCommented:
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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now