|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Executing file
How do i have a command button execute an application. (for example: trillian.exe)
|
|
#2
|
|||
|
|||
|
You can use shell function in VB
|
|
#3
|
|||
|
|||
|
[100% agree with darius]
|
|
#4
|
|||
|
|||
|
Quote:
How might i write that code? ![]() |
|
#5
|
|||
|
|||
|
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#6
|
|||
|
|||
|
it looks something like this (this one opens a web page in internet explorer):
Public Function ShellDocument(sDocName As String, _ Optional ByVal Action As String = "Open", _ Optional ByVal Parameters As String = vbNullString, _ Optional ByVal Directory As String = vbNullString, _ Optional ByVal WindowState As StartWindowState) As Boolean Dim Response Response = ShellExecute(&O0, Action, sDocName, Parameters, Directory, WindowState) Select Case Response Case Is < 33 ShellDocument = False Case Else ShellDocument = True End Select End Function Private Sub mnuHelpvisitUs_Click() ShellDocument "http://dondo.bravehost.com/index.htm" End Sub |
|
#7
|
|||
|
|||
|
Quote:
So to have a command button cmdTrillian execute trillian.exe when i click it, the code would look something like this shell(c:\program files\trillian\trillian.exe), but i get an error. |
|
#8
|
|||
|
|||
|
Hello Earthsfate,
How about this: Code:
Private Sub Command1_Click()
Dim runID As Variant
runID = Shell("c:\program files\trillian\trillian.exe", 1)
End Sub
|
|
#9
|
|||
|
|||
|
Quote:
Thanks alot |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Executing file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|