Register and join over 40,000 other developers!
Recent Topics
-
The Game You Are Waiting For?
WendellHarper - Dec 06 2020 01:21 PM
-
Quora and Reddit Backlinks
WendellHarper - Dec 06 2020 01:14 PM
-
Delete account
pindo - Jul 23 2020 01:33 AM
-
Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
-
Learn algorithms and programming concepts
johnnylo - Apr 23 2019 07:49 AM
Recent Blog Entries
Recent Status Updates
Popular Tags
- networking
- Managed C++
- stream
- console
- database
- authentication
- Visual Basic 4 / 5 / 6
- session
- Connection
- asp.net
- import
- syntax
- hardware
- html5
- array
- mysql
- java
- php
- c++
- string
- C#
- html
- loop
- timer
- jquery
- ajax
- javascript
- programming
- android
- css
- assembly
- c
- form
- vb.net
- xml
- linked list
- login
- encryption
- pseudocode
- calculator
- sql
- python
- setup
- help
- game
- combobox
- binary
- hello world
- grid
- innerHTML

6 replies to this topic
#1
Posted 24 February 2011 - 06:08 AM
I want to know how to run a Console Program in VB Like JAVA..What is the Default Folder in vb like jdk/bin in JAVA and how to set the Environment Path in vb ??
Please Help..!!!!
Example Code:
Imports System
Module Module1
Sub Main()
Console.WriteLine("Hello World!")
End Sub
End Module
Please Help..!!!!
Example Code:
Imports System
Module Module1
Sub Main()
Console.WriteLine("Hello World!")
End Sub
End Module
#2
Posted 24 February 2011 - 07:02 AM
Well I assume you have Visual Studio, so just create a new VB project, and when it comes up asking you what to name your program change the project type from winForms, to console.
[ATTACH=CONFIG]3732[/ATTACH]
Good luck ~ Committed.
[ATTACH=CONFIG]3732[/ATTACH]
Good luck ~ Committed.

There IS a war going on for your mind.
Nothing of eternal significance happens besides prayer.
Nothing of eternal significance happens besides prayer.
#3
Posted 24 February 2011 - 07:07 AM
Yeah Definitely this is an option to run the Console VB Program.. But i don't want to use the Framework of Visual Studio. I just Like To use it as a JAVA Program. Simply Write in a Notepad Save it as Example.vb and run from Console cmd...
#5
Posted 24 February 2011 - 07:20 AM
I am Reading a Book and it says that we can also run a program of vb using notepad and cmd..So i tried to do so :c-cool:well its better that i stay on the Visual Studio 2010:c-smile:
Well Thanx for advice:c-smile:
Well Thanx for advice:c-smile:
#6
Posted 24 February 2011 - 05:13 PM
Visual studio has a command line compiler, you can read about it here: How to: Invoke the Command-Line Compiler
I would recommend you get a proper IDE (Geany for example) and set it up so the compiler option uses vbc.exe automatically to aid in the process of building, doing it by command line manually is counterproductive.
I would recommend you get a proper IDE (Geany for example) and set it up so the compiler option uses vbc.exe automatically to aid in the process of building, doing it by command line manually is counterproductive.
All new problems require investigation, and so if errors are problems, try to learn as much as you can and report back.
#7
Posted 24 February 2011 - 08:27 PM
Visual studio has a command line compiler, you can read about it here: How to: Invoke the Command-Line Compiler
I would recommend you get a proper IDE (Geany for example) and set it up so the compiler option uses vbc.exe automatically to aid in the process of building, doing it by command line manually is counterproductive.
This is what i am looking for.. thanks a ton Alexander..

Also tagged with one or more of these keywords: hello world, console
Language Forums →
C# →
C# Console ClockStarted by Netsurfer2, 26 Sep 2015 ![]() |
|
![]() |
||
Language Forums →
Visual Basic →
VB6 need some help with console events pleaseStarted by TheAutomator, 12 Sep 2015 ![]() |
|
![]() |
||
Language Forums →
Java →
How to write console output to a fileStarted by Alcamech, 29 Jan 2015 ![]() |
|
![]() |
||
Language Forums →
C# →
A console application to an application with graphic how?Started by bunny03, 09 Jun 2014 ![]() |
|
![]() |
||
General Forums →
The Lounge →
Introductions →
Hey Folks I have a simple questionStarted by BobMarley, 10 Aug 2013 ![]() |
|
![]() |
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download