I want to implement some code in VB6.0 application and make it as commandline exe. So that I can execute it from any shell Proc command. And also how can I have the commandline arguments with in VB Application.
Please anybody help me how to do that.
Thanks
bdharmap
Last edited by bdharmap; August 10th, 2004 at 09:41 AM.
If I understand you correctly, what you do, is create a standard project, include a module and put all your code in the module. The properties of the project state that you start with SUB MAIN, the last thing SUB MAIN does is issue the END command.
This will not allow for user interaction though.
I have used this technique to call a VB progam from a dos .BAT file, to translate the contents of a file, before FTP'ing it to another location.
I want to implement some code in VB6.0 application and make it as commandline exe. So that I can execute it from any shell Proc command.
If I have really understood, you want to add some command line parameters to you application in the way that this (your application) reacts on these parameters.
You need there for a command line parser. You can use the function Command. See here for an example, and here for the documentation.
I add some code to introduce, if you are interested to write your application that have to emulate his own shell or to link to the system shell or to load several forms as a command option.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.