Results 1 to 11 of 11

Thread: [RESOLVED] will a vb6 program run from dos

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2009
    Posts
    573

    Resolved [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

  2. #2
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    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,...

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    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

  4. #4
    Cumbrian Milk's Avatar
    Join Date
    Jan 2007
    Location
    0xDEADBEEF
    Posts
    2,448

    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.
    W o t . S i g

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2009
    Posts
    573

    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

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2009
    Posts
    573

    Re: will a vb6 program run from dos

    when u type in the command line c:\edit what opens is a console app right?

  7. #7
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    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!

  8. #8
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    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

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2009
    Posts
    573

    Re: will a vb6 program run from dos

    yall mean id have to use qbasic or earler to do it?

  10. #10
    Cumbrian Milk's Avatar
    Join Date
    Jan 2007
    Location
    0xDEADBEEF
    Posts
    2,448

    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.
    W o t . S i g

  11. #11
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    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
  •  



Click Here to Expand Forum to Full Width