Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help! I need you!
#1
so hey guys, I have just started work with visual basic so am a little clueless. I am creating a program witch will run other.exe files when you press the button. How would I go about doing this? Please help! <!-- sBig Grin --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="Big Grin" title="Very Happy" /><!-- sBig Grin -->
#2
You can use:

Process.Start("c:\whateveruwanttorun.exe")
or
Shell("c:\whateveruwanttorun.exe) (don't know exactly of this one will work)


you can also put all the exe's from a directory in a listbox:

Dim exeArray As String() = FileIO.FileSystem.GetFiles(Application.StartupPath, 2, "*.exe").ToArray

ListBox1.Items.AddRange(exeArray)


and then run them for example from there by clicking on them.
---------------------------------------
Earn money for all your games!
<!-- m --><a class="postlink" href="http://www.cashle.com/us/1936/Earn-money-for-all-y">http://www.cashle.com/us/1936/Earn-money-for-all-y</a><!-- m -->
our-games?ref=ekel
---------------------------------------
#3
Yeah, LearningVB has it correct.

And is that how you use arrays? Wow... That could be helpful!
My Blog | My Setup | My Videos | Have a wonderful day.


Forum Jump:


Users browsing this thread: 1 Guest(s)