Creating exe files that pass arguments to VB 
Author Message
 Creating exe files that pass arguments to VB

Anybody know it this is possible? I struggled with it most of the day.
Although the SUB MAIN () has brackets it won't let me insert any
parameters.  I would like an external program to pass three parameters to
VB.  Thanks for your help.
gnye



Tue, 17 Aug 1999 03:00:00 GMT  
 Creating exe files that pass arguments to VB

Quote:

> Anybody know it this is possible? I struggled with it most of the day.
> Although the SUB MAIN () has brackets it won't let me insert any
> parameters.  I would like an external program to pass three parameters to
> VB.  Thanks for your help.
> gnye

I presume you want command line parameters when you run your VB app ?  There is a
function called COMMAND$ which returns the string after your executable name when your
app is run.  You can use this for switches, file names etc.

Hope this is what you want,

Bill

--
++++++++++++++++++++++++++++++++++++++++
|                                      |
|             Bill Martin              |
|          Halesowen College           |
|                                      |


|                                      |
++++++++++++++++++++++++++++++++++++++++



Tue, 17 Aug 1999 03:00:00 GMT  
 Creating exe files that pass arguments to VB


Quote:

>Anybody know it this is possible? I struggled with it most of the day.
>Although the SUB MAIN () has brackets it won't let me insert any
>parameters.  I would like an external program to pass three parameters to
>VB.  Thanks for your help.
>gnye

Use the COMMAND$ function.

Greg



Tue, 17 Aug 1999 03:00:00 GMT  
 Creating exe files that pass arguments to VB

Check out the Command Function in the VB Help.  That is what you need.  It
will return the string that was after the executable name on the command
line when you execute the application.  For Example,

If you execute: MYAPP.EXE /EX /EX1 /EX2

in you app the Command function would return: "/EX /EX1 /EX2"

Hope that helps.



Quote:
> Anybody know it this is possible? I struggled with it most of the day.
> Although the SUB MAIN () has brackets it won't let me insert any
> parameters.  I would like an external program to pass three parameters to
> VB.  Thanks for your help.
> gnye



Tue, 17 Aug 1999 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Passing arguments to a vb .exe file from the command line

2. passing argument to exe file

3. passing argument to exe file

4. How to get passed argument in VB from Start.exe

5. Creating an .EXE file from a VB .EXE ????

6. how to pass arguments to an vb executable file

7. Passing date arguments from command line to exe

8. Passing arguments to control.exe or Appwiz.cpl???

9. Passing command line arguments to VB3/4 EXE

10. Passing a argument to a standard exe.

11. How to pass command-line options to VB-created EXE

12. How to create an Exe file and a setup file in VB.NET

 

 
Powered by phpBB® Forum Software