Download Horizon :: Staff Members :: Save Vault :: XboxMB YouTube


Old 03-07-2012   #1 (permalink)
Regular Member
Androcentric's Avatar
Join Date: Oct 2010
Location: Pavman's house
Posts: 4,237
Thanks: 1,460
Default open a program?

is there anyway i can make a program open like google chrome when i hit a button? im taking vb right now, so if you can do it in that, it would help alot
__________________
Humanity shall be witnessed clear
when we quit being humans

Androcentric is offline


Old 03-07-2012   #2 (permalink)
crook47's Avatar
Join Date: Sep 2010
Location: Washington
Posts: 2,442
Thanks: 902
Default Re: open a program?

Shell("program location")

or if you want to just open a site, do:

System.process.start("website")
__________________
crook47 is offline Send a message via AIM to crook47 Send a message via MSN to crook47 Send a message via Yahoo to crook47
The following user thanked this post: Androcentric


Old 03-07-2012   #3 (permalink)
Regular Member
Androcentric's Avatar
Join Date: Oct 2010
Location: Pavman's house
Posts: 4,237
Thanks: 1,460
Default Re: open a program?

so something like

Button1_click
shell("GoogleChrome, Desktop")
__________________
Humanity shall be witnessed clear
when we quit being humans

Androcentric is offline




Old 03-07-2012   #4 (permalink)
Chris's Avatar
Join Date: Sep 2010
Location: California
Posts: 12,127
Thanks: 11,723
Default Re: open a program?

Quote:
Originally Posted by AHA38 View Post
so something like

Button1_click
shell("GoogleChrome, Desktop")
I'm guessing you would need to use the correct directory, so something along the lines of C:/User/Programs/chrome.exe
Chris is offline


Old 03-07-2012   #5 (permalink)

Jordannnnn's Avatar
Your Mom.
Join Date: Sep 2010
Location: Tennessee
Posts: 6,909
Thanks: 1,948
Default Re: open a program?

You could set a string and make an openfiledialog select the file and make the openfiledialog save the location and then shell("stringthatyouset") and that will ensure that they always open the right one, incase they installed it differently.
__________________

Jordannnnn is offline Send a message via AIM to Jordannnnn


Old 03-07-2012   #6 (permalink)
Regular Member
Androcentric's Avatar
Join Date: Oct 2010
Location: Pavman's house
Posts: 4,237
Thanks: 1,460
Default Re: open a program?

Quote:
Originally Posted by Chris View Post
I'm guessing you would need to use the correct directory, so something along the lines of C:/User/Programs/chrome.exe
was using pseudocode but whatever chris you can close this now if you want.
__________________
Humanity shall be witnessed clear
when we quit being humans

Androcentric is offline


Old 03-07-2012   #7 (permalink)
Chris's Avatar
Join Date: Sep 2010
Location: California
Posts: 12,127
Thanks: 11,723
Default Re: open a program?

Quote:
Originally Posted by AHA38 View Post
was using pseudocode but whatever chris you can close this now if you want.
Closed.
Chris is offline
The following user thanked this post: Androcentric

Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:40 PM.


 

Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
COPYRIGHT (c) 2010 - 2013 - XboxMB - DESIGN BY:
EDENWEBS.COM