Thread: Program to run in Dos only

  1. #1
    I'm Back
    Join Date
    Dec 2001
    Posts
    556

    Program to run in Dos only

    i'm writing a program which i want to run from dos only and not run from windows

    it should display the message that the mswindow programs display - You cannot run this program from the Windows MS-DOS command prompt.-

    what should i do??

  2. #2
    Registered User
    Join Date
    Jan 2002
    Posts
    68
    The reason that message comes up is that windows decides that the program should not be run in windows...not the actual program. So just write a program for dos with a dos compiler and windows will do your dirty work...unless o course it has no problem running your prog in windows...in which case you should leave that up to the user anyway IMHO.

    The Gekko

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    28

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to time how long a program takes to run?
    By advancedk in forum C Programming
    Replies: 2
    Last Post: 08-18-2008, 07:50 PM
  2. Replies: 4
    Last Post: 07-24-2008, 09:02 AM
  3. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 12:39 PM
  4. program won't run standalone
    By richard in forum C++ Programming
    Replies: 2
    Last Post: 07-20-2002, 06:21 PM
  5. initialising a DOS program from a C enviroment
    By Robert_Ingleby in forum C Programming
    Replies: 5
    Last Post: 03-07-2002, 01:53 PM