Sythe.Org Forums     Register     FAQ     Members List     Calendar     Mark Forums Read    
 
Sythe.Org Forums  
   Runescape Gold

Sythe.org — A Virtual Goods Trading Hub

Make real cash! buying and selling in-game items.

We have a no-scam policy.

You can make thousands playing your favourite games here at Sythe.org.

Just sign up an account and follow the rules!


Take me to

Runescape Markets

Other Game Markets

Support Center

Register an Account

Close
(help) Open A Program
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 05-03-2010, 06:16 PM
Newcomer
 
Join Date: May 2010
Posts: 1
Question (help) Open A Program

HI,
i wanna code for VB2008.

i wanna code to open a program in the same folder as the vb program


thanks
Reply With Quote
  #2  
Old 05-08-2010, 01:34 PM
Member
 
Join Date: Mar 2009
Posts: 81
Default Re: (help) Open A Program

Process.Start("PROGRAM NAME HERE.exe")
Reply With Quote
  #3  
Old 05-09-2010, 01:00 AM
Member
BANNED
 
Join Date: Mar 2010
Posts: 83
Send a message via AIM to Classical007 Send a message via MSN to Classical007 Send a message via Yahoo to Classical007
Default Re: (help) Open A Program

The above works, however for opening .exe files this is better:

Shell(Path)
Reply With Quote
  #4  
Old 05-09-2010, 07:03 AM
Active Member
Visual Basic Programmers
 
Join Date: Dec 2005
Location: Alberta Canada
Posts: 235
Default Re: (help) Open A Program

Actually, Process.Start() is the better way to be doing it. The Shell() function is only there for legacy reasons.
Reply With Quote
  #5  
Old 05-09-2010, 07:09 AM
Member
BANNED
 
Join Date: May 2010
Posts: 41
Default Re: (help) Open A Program

Process and Start
Reply With Quote
  #6  
Old 05-30-2011, 02:22 PM
Newcomer
BANNED
 
Join Date: May 2011
Location: Malaysia
Posts: 20
Default Re: (help) Open A Program

I know it has been solved. Just showing my way,

Process.Start(Application.StartupPath & "\Your file.exe")
Reply With Quote
  #7  
Old 07-08-2011, 12:53 AM
Guru
 
Join Date: Jan 2007
Posts: 1,455
Default Re: (help) Open A Program

The Shell() function is a remnant of VB6; it is better practice to use Process.Start to start a program; if the file you are trying to open is not executable (ie. if it is a help manual or something else), then unfortunately you have to muddy the water by calling the Win32 API: ShellExecute still remains the only way to do this (for now): http://social.msdn.microsoft.com/for...-f2c7d32ffabc/
Reply With Quote
Reply



Cheap RS Gold Store  Runescape Gold

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

All times are GMT +1. The time now is 01:57 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.1