Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have simple program KochCurve.exe. It is a DOS based program which asks for some input and displays the Koch Curve while executed in windows.

On Ubuntu i installed WINE and also configured using wineconfig. I have set the permissions for "Allow executing file as program".

When i run this .exe it shows DOS like window for a while and gets suddenly closed.

Help please.

share|improve this question
    
Are you sure this program is supported in WINE? Not all programs run in Wine. You should check WineHQ. If this program is rated "garbage" or "bronze" it probably won't work. –  upapilot Jun 22 '12 at 9:17
    
Originally it was C code. It is converted into .exe (I don't know how). It runs on windows. –  Rajneesh Jun 22 '12 at 9:20
    
Try to run it from a Terminal window eg. wine KochCurve.exe and see if there is any error output. Update the question with the resulting messages. –  lgarzo Jun 22 '12 at 9:57
add comment

3 Answers

up vote 2 down vote accepted

Try running it in a DOSBox instead.

Seems like an easier solution than to attempt to run it in Wine.

share|improve this answer
    
I tried with DOSBox and it worked fine. Thanks –  Rajneesh Jun 26 '12 at 8:40
add comment

This tutorial from the Wine Forums will guide you on how to run a DOS program using wine.

share|improve this answer
    
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. Imagine the linked site goes down for maintenance, or even forever: Your post would be useless to someone having the problem outlined here. –  hexafraction Aug 10 '12 at 17:14
add comment

Please run the program from terminal (wineconsole myprogram.exe). I don't think it's really a DOS program but rather a .Net or Mono program. In that case it will tell you that it's not a DOS program and has to be run from Windows. That's the error message you probably can't see because the window instantly closes. All .Net and Mono programs contain this mini DOS program code, which really is a program that can be run from a DOS operating system.

Install mono and run the program from terminal with: mono myprogram.exe

Please don't mix up the terminology:

  • DOS = an old CP/M based operating system
  • DOSBox = an emulator mostly for games written for MS DOS
  • Program with no GUI = a program meant to be run from command line/console/terminal, doesn't have to be a DOS program even if it has the extension .exe
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.