Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / November 2003



Tip: Looking for answers? Try searching our database.

RUN EXECUTABLE PROGRAM

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nigel - 24 Nov 2003 13:36 GMT
How do I run an executable program from VB.  I have the
following code:

Set Sumfin = New VBA
Sumfin.Interaction.Shell "C:\Command.exe"
Santhana Gopalan S - 24 Nov 2003 18:31 GMT
Use the following API function.

Private 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

Refer to the documentation, on using the above API
function, given in the below link.

http://msdn.microsoft.com/archive/default.asp?
url=/archive/en-us/dnarvb4/html/msdn_shelexec.asp

>-----Original Message-----
>How do I run an executable program from VB.  I have the
[quoted text clipped - 3 lines]
>Sumfin.Interaction.Shell "C:\Command.exe"
>.
Nigel - 25 Nov 2003 11:36 GMT
Thank you

>-----Original Message-----
>Use the following API function.
[quoted text clipped - 20 lines]
>>
>.
Lawrence - 26 Nov 2003 09:25 GMT
Why don't you just use the built-in VB  shell command?

Try:
Shell "cmd"

----------------------------------------------------------------

> How do I run an executable program from VB.  I have the
> following code:
>
> Set Sumfin = New VBA
> Sumfin.Interaction.Shell "C:\Command.exe"
 
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



©2009 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.