Author |
Message |
Markus Wei #1 / 10
|
 how can i start an exe-file out of VB
Hi ! Is there a simple way to start an existing exe-file (for example an arj x archiv.arj command) out of a running vb-application ? I have VB4.0. Do I have to use the WIN-API ? Please mail me your reply. Thanx, Markus
|
Mon, 26 Jul 1999 03:00:00 GMT |
|
 |
Geophi #2 / 10
|
 how can i start an exe-file out of VB
The absolute simplest way (not the best) is to use the shell command
|
Tue, 27 Jul 1999 03:00:00 GMT |
|
 |
RonM #3 / 10
|
 how can i start an exe-file out of VB
Quote:
> The absolute simplest way (not the best) is to use the shell command
What would be *the best* way to do this?? Thanks Ron
|
Tue, 27 Jul 1999 03:00:00 GMT |
|
 |
MARCH #4 / 10
|
 how can i start an exe-file out of VB
On Fri, 07 Feb 1997 06:59:18 -0800, RonM Quote:
>> The absolute simplest way (not the best) is to use the shell command >What would be *the best* way to do this?? >Thanks >Ron
The best way would be to open a help file or a manual and read about the Shell command.
|
Sat, 31 Jul 1999 03:00:00 GMT |
|
 |
RonM #5 / 10
|
 how can i start an exe-file out of VB
Duh, didn't you, like, read the post?? He said "The absolute simplest way (not the best) is to use the shell command." If the shell command is *NOT* the best way, then what command is?? Obviously if it's not the shell command, opening up a help file or manual and reading about the Shell command isn't going to answer my question!
|
Sat, 31 Jul 1999 03:00:00 GMT |
|
 |
Philippe Delapchie #6 / 10
|
 how can i start an exe-file out of VB
Quote:
> On Fri, 07 Feb 1997 06:59:18 -0800, RonM
> >> The absolute simplest way (not the best) is to use the shell command > >What would be *the best* way to do this?? > >Thanks > >Ron
Try the ShellExecute WinAPI. You can open or print a file (exe or document). I think it's the best because for document file you don't worry about the path of the application who open or print the file. Windows use the registry to do this for you. -- ------------------------------------------------------------------- ( Philippe Delapchier ( Tel : +33 01.46.14.52.49 ( ( Telis Systemes & Communications ( Fax : +33 01.46.14.58.44 (
( 55, av. des champs Pierreux ( web : http://www.telis-sc.fr ( ( 92029 Nanterre Cedex FRANCE ( ( ------------------------------------------------------------------- ( Opinion is mine, not my employer's ( -------------------------------------------------------------------
|
Sun, 01 Aug 1999 03:00:00 GMT |
|
 |
Roger Lovel #7 / 10
|
 how can i start an exe-file out of VB
Quote: > >> The absolute simplest way (not the best) is to use the shell command > >What would be *the best* way to do this?? > >Thanks > >Ron
I thought the Shell cimmand was the only way to do it, simply typing Shell("<program path+name>") should do the trick with no problems, why are you trying to look for another way to do this?
|
Mon, 02 Aug 1999 03:00:00 GMT |
|
 |
gloriap #8 / 10
|
 how can i start an exe-file out of VB
Quote:
> > >> The absolute simplest way (not the best) is to use the shell command > > >What would be *the best* way to do this?? > > >Thanks > > >Ron > I thought the Shell cimmand was the only way to do it, simply typing > Shell("<program path+name>") should do the trick with no problems, > why are you trying to look for another way to do this?
If you shell to a bat file, remember to create a pif file for that and pass <pifname> /c <command> to shell
|
Tue, 03 Aug 1999 03:00:00 GMT |
|
 |
Bob Butle #9 / 10
|
 how can i start an exe-file out of VB
Quote: > > >> The absolute simplest way (not the best) is to use the shell command > > >What would be *the best* way to do this?? > > >Thanks > > >Ron > I thought the Shell cimmand was the only way to do it, simply typing > Shell("<program path+name>") should do the trick with no problems, > why are you trying to look for another way to do this?
You can use API calls WinExec (which I believe is what SHELL does anyway) or, if you need more control over the details of the process, CreateProcess. For most instances this is overkill and the Shell statement is the best way. -- Please reply through the newsgroup. The reply e-mail address is garbage to reduce the spam rate.
|
Tue, 03 Aug 1999 03:00:00 GMT |
|
 |
Jim Houghtalin #10 / 10
|
 how can i start an exe-file out of VB
Quote: > I thought the Shell cimmand was the only way to do it, simply typing > Shell("<program path+name>") should do the trick with no problems, > why are you trying to look for another way to do this?
IMO, it doesn't really matter why he wants another way to do it, but I agree with what Philippe Delapchier said in a previous post...the ShellExecute API function is the *best* way to launch things. It is what Start|Run uses in Win95, and you don't need paths. Try launching "www.microsoft.com" with the user's (not yours) default WWW browser or edit "c:\autoexec.bat" with the user's default text editor with the VB Shell command. I can do it with one short API call...how many lines will it take you with the Shell command? Lots. ----- "One seventh of your life will be spent on Mondays." -- Daniel Keys Moran _The Long Run_ =========-R-A-N-D-O-M-===-S-I-G-===-G-E-N-E-R-A-T-O-R-=========
Web: http://www.awod.com/gallery/rwav/robertjh
|
Wed, 04 Aug 1999 03:00:00 GMT |
|
|