|
-
Mar 8th, 2010, 05:57 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] will a vb6 program run from dos
will a vb6 program run from dos prompt?
i mean like edit.com runs from prompt
do i need something different
thanks
-
Mar 8th, 2010, 06:05 AM
#2
Re: will a vb6 program run from dos
I think you can start your VB application using Command Prompt... For this, just call the filename (with exe extension) 
Demonstration (in Command Prompt):
C:\Documents And Settings\MyUserName> cd\
press enter
c:\> cd myproject
press enter
c:\myproject> myprojectfile.exe
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Mar 8th, 2010, 06:50 AM
#3
Re: will a vb6 program run from dos
if the path\filename contains spaces it will have to be enclosed in quotes
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Mar 8th, 2010, 07:09 AM
#4
Re: will a vb6 program run from dos
vb6
If you want to make a VB6 console app (as opposed to launching a VB6 GUI app from the console) then this link might be of interest.
-
Mar 8th, 2010, 01:18 PM
#5
Thread Starter
Fanatic Member
Re: will a vb6 program run from dos
if i boot up into dos and run my vb6 program will that work?
and do i have to do something with screen resalotion?
thanks
-
Mar 8th, 2010, 01:58 PM
#6
Thread Starter
Fanatic Member
Re: will a vb6 program run from dos
when u type in the command line c:\edit what opens is a console app right?
-
Mar 8th, 2010, 02:31 PM
#7
Re: will a vb6 program run from dos
I'm not sure, however I believe that a vb6 .exe will NOT run in pure Dos-Mode!
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
Mar 8th, 2010, 02:50 PM
#8
Re: will a vb6 program run from dos
it would most likely give an error "windows application", vb runtimes would not be available in dos mode
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Mar 8th, 2010, 03:33 PM
#9
Thread Starter
Fanatic Member
Re: will a vb6 program run from dos
yall mean id have to use qbasic or earler to do it?
-
Mar 8th, 2010, 04:38 PM
#10
Re: will a vb6 program run from dos
Where you can use VB6 to create a Win32 console application you can't run a Win32 console application without windows. I think when edit is run in a windows console it runs on a virtual machine.
Regarding Basic compilers for 16bit MSDOS, as well as QBasic there is also Visual Basic 1 for DOS.
-
Mar 9th, 2010, 02:26 AM
#11
Re: [RESOLVED] will a vb6 program run from dos
VB for DOS, my first VB ;-)
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|