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??