Hi.. I am kind of new using VB 6.0
Does VB have commands for running in command line (MSDOS)
because I want to run an application in VB 6.0 as a batch file?
Can you clarify what you actually want? The answers given so far allow you to shell other applications from VB, but I get the feeling that what yu want to do is run your VB program as command-line application, interacting (i.e input and output) to the command-line. Is that correct?
Yes, that is correct, Strongm, I developed an application in where I load a some .csv file and I need to run it as a batch file from the command- line, just like sql does...
Well, if I am understanding you correctly, the answer is that yes, you can. However, it is not at all easy or straightforward. VB programs are GUI applications, and during launch disassociate themselves completely from any command line.
Now, it is pretty simple to attach a new console (or command line) to a VB program once it is running, but not to associate with the command line that launched it. To achieve the latter involves a nasty hack (that rewrites the VB executable's header so that it can be launched as a console application). Are you really sure you need to go down this route? You may be better off using VBScript, which can be used as a batch language.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.