|
-
Jan 10th, 2001, 02:54 AM
#1
Thread Starter
Lively Member
Is there a way to execute an .exe file using Visual Basic
I have a midi to text converter. So how do it start and stop it using vb.
The syntax:
c:\converter.exe source.mid destination.txt
So how do i use visual basic to code it....
Thanks a lot.
VisualBasic5.0ServicePack3
-
Jan 10th, 2001, 03:29 AM
#2
Addicted Member
Code:
X = Shell("c:\converter.exe source.mid destination.txt")
-
Jan 10th, 2001, 03:33 AM
#3
Thread Starter
Lively Member
Thank You
Thank very much.
What is the X in front of the Shell for?
VisualBasic5.0ServicePack3
-
Jan 10th, 2001, 03:57 AM
#4
He is just assigning a variable if you needed to call this code more than once:
Code:
Dim x as string
x = Shell("C:\Pathname\A_File_Here.exe")
You can leave this out & use the following :
Code:
Shell "C:\Pathname\A_File_Here.exe"
(Notice I've left the brackets off though) 
-
Jan 10th, 2001, 04:09 AM
#5
Thread Starter
Lively Member
Thank You
Thank you for your help.
VisualBasic5.0ServicePack3
-
Jan 10th, 2001, 04:32 AM
#6
PowerPoster
Adrian, X is the TaskId return by the Shell function.
Which may applicable to those wish to have further task manipulation.
Cheers!
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
|