running an exe?

running an exe?

Post by M.L.A. Kaandor » Sun, 06 Jun 1999 04:00:00



How can I run an exe file from an vb app...??

michael

 
 
 

running an exe?

Post by ron de brui » Sun, 06 Jun 1999 04:00:00


hallo

dit doe je zo

Private Sub Command1_Click()
Dim RetVal
RetVal = Shell("C:\WINDOWS\CALC.EXE", 1)    ' Run Calculator.
End Sub

groeten Ron

M.L.A. Kaandorp heeft geschreven in bericht

>How can I run an exe file from an vb app...??

>michael



 
 
 

1. Running DCOM95.EXE from SETUP1.EXE hangs!?

Hello everybody
On the hard way I have learned that to distribute ADO with your application
you have to make sure that on the destination PC DCOM is installed. Since
the VB6 setup can not automatically install DCOM I spend 2 days figuring
out how to modify the Setup1.VBP to make it install DCOM95 when the target
system does not have it yet. This works fine until at the end of the
DCOM95-Setup a messagebox appears, telling me that I have to reboot my PC
to make DCOM95 effective. Clicking on Yes does not reboot the PC however,
it simply dumps me back into an empty blue form from Setup1. (Running
DCOM95 directly does not produce this problem)
Can anyone give me a hint what might be going wrong!
Thanks for any helpful hint that gets me a little bit further out of this
mess!
Roland

Code used to run install DCOM:

Public Sub InstallDCOM()
    If Not (DirExists(gsTEMPDIR)) Then
        MkDir gsTEMPDIR
    End If
    ExtractFileFromCab GetShortPathName(gsCABNAME), gstrSEP_AMPERSAND & _
                gstrFILE_DCOM, gsTEMPDIR & gstrFILE_DCOM, gintCabs, gstrSrcPath
    If FileExists(gsTEMPDIR & gstrFILE_DCOM) Then
        SyncShell gsTEMPDIR & gstrFILE_DCOM, INFINITE
    End If

End Sub

--
----------------------------------------------------------------
Roland Helbig                                Hitex GmbH
                                             Greschbachstr. 12
Phone  +49 721 9628 - 134                    76229 Karlsruhe
Fax    +49 721 9628 - 149                    GERMANY

----------------------------------------------------------------
Do not use my E-mail address for advertising.
----------------------------------------------------------------

2. Disk or Network Error

3. SQL6.5 Executive running an EXE

4. Additonal information to "Database maintenance"

5. SS7 installation aborts when running cnfgsvr.exe

6. How to see table sizes

7. Running comclust.exe

8. Oracle DBA position in Moncton, NB

9. Help!How to run a exe with SQLServer7.0

10. xp_cmdshell to run vb.exe

11. Running VB exe from on SQL server machine fails

12. Running RESTOREM.EXE

13. Can you run BCP.EXE as a service?