How can i create a VB tool without having a GUI front
How can i create a vb program without a GUI. I just want a simple .exe file which can be executed by either double-clicking or execution through DOS.
In other words, i do not want any physical form to the program or having the need to provide setup packaging.
The only question I have with this is when you say you want to run the program and don't want a GUI do you want it to just have everything hard coded and run when you run it, or do you want to be able to pass items into it to change settings that you may set with a GUI such as a path or any item.
If you just want it to just run when double clicking without passing information into it then you can just create a new project then remove the Form and add a module. then from that point ass a Sub Main and end Sub and place your code in there, from that point change the startup to the Sub Main in VB for that project by clicking on Project Properties under the Project Pulldown.
Attached is a simple project that has just a messageBox Run when you run this project.
Cheers guys. This is helpful. In answer to your question, yes i will be requiring arguments from the user. The way i plan to do this is via a configuration file where the user will provide the required arguments. The .exe will be run by Windows Task scheduler every night. When the .exe is executed the code inside will read in this file to retrieve the values and perform its necessary tasks.
Thanks for the code, i will look into it.
By the way, any of you guys know how activeX exe works. Would this be an alternative solution as well, or it is something totally different?