Results 1 to 2 of 2

Thread: How to pass values from form to MS-DOS shell

  1. #1

    Thread Starter
    Member
    Join Date
    May 2000
    Posts
    37

    Question

    Hi Guys

    Is it possible at all for VB and MS-DOS to communicate with each other?

    I have a DOS executable which does a certain task, and the syntax is:

    da <filename.bin> <filename.iso>

    I'm trying to create an interface in VB so that the user does not have to go to MS-DOS to type in all the filenames, etc. I was able to get it to work at this point... however, after this command, the program will still prompt the user to enter in a value (0,1, or 2). How will I code my VB such that I could enter in a default value in my VB program , then the MS-DOS program would know (for example, that I chose 0/1/2)?

    Hope this e-mail is clear... If anything is unclear please write back. Thanks!
    Thanks for reading my post!

  2. #2
    Guest
    Do you mean Shell a Dos Program and also performing the commands?

    Code:
    Shell "Dosprogram.exe /0 C:\file.exe C:\file.iso"
    If you want to make your program look like a DOS Window, than try searching http://www.planet-source-code.com. It can be done.

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