PDA

View Full Version : Making an old MSDos program into vb app?


Misery
12-16-2003, 04:47 PM
Im just wondering if its possible to make a MSDos program function in a VB .exe, if so would i need the source to it or could i just implement something that does the cmd and runs the dos prog in a sort of "shell"?

Latem
12-16-2003, 11:08 PM
I am not exactly sure I understand.
The way I see it, is that you have a command program called lets say myprog.

so from dos you would type: C:\myprog
or something similar.

If you want to have the same program, but written in VB, and have a GUI and work in Windows, you would have to write it in VB. Having the sourcecode to your dos program would be helpful, but you cannot just copy and paste.

If oyu want something that would just lunch your dos program, then what you could do is create a batch file, called for ex. myprog.bat.
yor batch file would be this:

C:\myprog

and when you dbl click on the file it lunches your dos app.

if your program has command line params then you have to put them in the batch file as well.

Hope this helps.

Latem

Misery
12-17-2003, 12:44 PM
Dang need source lol. Well could i make a .bat thats connected to a gui that inputs variables? so one command line for saying hello world would be 2 text boxes where hello & world could be put in, and then they would be exacuted by my dos program?

HelicalCynic
01-05-2004, 10:41 PM
That depends on whether the old dos program takes that sort of command-line arguments or not. You're probably better off rewriting it from scratch if you don't have the source, or using the source (depending on the language it's originally in) as just a guide for what the program needs to do and what bugs have been fixed/avoided so far.

HTH,
Bryan