|
-
Dec 14th, 2000, 04:00 AM
#1
Thread Starter
New Member
Friends,
i would like to run an application ( msword.exe) by clicking a command button. Can anyone suggest what to do...
thanx,
bo
-
Dec 14th, 2000, 01:16 PM
#2
Hyperactive Member
-
Dec 14th, 2000, 01:52 PM
#3
Thread Starter
New Member
wrong post page
i wanna do it in vb6 not in asp
-
Dec 15th, 2000, 12:50 AM
#4
Addicted Member
Use Shell command
If I remember correctly, you can use the "shell" command in VB6
For example:
Sub Button_onclick
Shell (C:\....(path of MSword)..\MSword.exe)
End Sub
-
Dec 15th, 2000, 04:03 AM
#5
New Member
function
make use of the following function.
Option Explicit
Public Function RunExe(ByVal Filename As String) As Long
On Error Resume Next
Shell Filename
'return the error if any
RunExe = Err.Number
End Function
-
Dec 20th, 2000, 12:04 AM
#6
Thread Starter
New Member
thanks guys........
got it!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|