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.
Printable View
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.
Code:X = Shell("c:\converter.exe source.mid destination.txt")
Thank very much.
What is the X in front of the Shell for?
He is just assigning a variable if you needed to call this code more than once:
You can leave this out & use the following :Code:Dim x as string
x = Shell("C:\Pathname\A_File_Here.exe")
(Notice I've left the brackets off though) :)Code:Shell "C:\Pathname\A_File_Here.exe"
Thank you for your help.
:)
Adrian, X is the TaskId return by the Shell function.
Which may applicable to those wish to have further task manipulation.
Cheers!