Page 1 of 1

Start a program

Posted: Tue Feb 23, 2010 8:31 pm
by NeedHelp
How can i make you start a program with a button click, for example:

Lets use Firefox as the example

You click 'Start' and it starts Firefox [from C://Programfiles/Firefox/fixefox.exe <-- just an example]
You click 'Search' and it will search for Firefox.exe and start it
start.png
-NeedHelp

Re: Start a program

Posted: Tue Feb 23, 2010 10:14 pm
by GoodGuy17
Try this:
Code: Select all
Shell "C://Programfiles/Firefox/firefox.exe"

Re: Start a program

Posted: Tue Feb 23, 2010 10:43 pm
by NeedHelp
Can you make it so you write the file location in a textbox and when you close the program the texts still there.. Understand?

Re: Start a program

Posted: Wed Feb 24, 2010 1:01 am
by GoodGuy17
I think like this:
create a setting in the project properties named PG.
Now, in form_load:
Code: Select all
 textbox1.text = my.settings.PG
And, in button run click:
Code: Select all
 Shell (textbox1.text)
My.settings.PG = textbox1.text
my.settings.save
my.settings.refresh
Note it will only save the text if you clicked Run.