How to run DOS based program on XP ?

My OS is XP with SP1.
Then i installed TurboC(TC).It was working fine.

Then after a month, now i try to run TC, now it gives error :

C:\Windows\System32\autoexec.nt.The system file is not suitable for running MS-DOS and Microsoft Windows Applications.Choose close to terminate the application.

It also denies to setup Visual Studio Setup.

My computer is installed with DOT NET ,SQL server etc.

Please let ne know the probable cause of the problem and its solution.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chck if this helps:
Troubleshooting MS-DOS-Based Programs in Windows;en-us;314106

HOW TO: Use the Program Compatibility Wizard in Windows XP;en-us;301911

HOW TO: Use Windows Program Compatibility Mode in Windows XP;en-us;292533

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial

There is an easy solution for this:

Try the fix:

Double click the file and try again.

Shane Russell2nd Line Desktop SupportCommented:
I dont know if this was suggested already but what about expanding autoexec.nt from the cd , take a look here :

Also as per the above suggestion use compatability mode.

If you really cant get it to work and you want it to work what about trying vmware ??

vmware :

I think the one you want is vmware workstation.

I hope this helps :)
Expert Spotlight: Joe Anderson (DatabaseMX)

We’ve posted a new Expert Spotlight!  Joe Anderson (DatabaseMX) has been on Experts Exchange since 2006. Learn more about this database architect, guitar aficionado, and Microsoft MVP.

The following link has a fix for this exact problem:

I think this will solve your problem. Please post back here with results.
NOTE: My previous post has a link for Windows 2000. Your system is Windows XP, but the solution will still work.
Try this

Go to command prompt(Start->Run->Type "CMD" -withoute quotes  and hit enter

Put the windows xp cd in dc drive n'  typr on commnad prompt

expand "drive letter":\i386\config.nt_ c:\windows\system32\config.nt
expand "drive letter":\i386\autoexec.nt_ c:\windows\system32\autoexec.nt
expand "drive letter":\i386\command.co_ c:\windows\system32\

where drive letter is the letter for the CD drive (without quotes)

If this give an error thne try this on the command prompt
expand c:\windows\repair\config.nt_ c:\windows\system32\config.nt
expand c:\windows\repair\autoexec.nt_  c:\windows\system32\autoexec.nt
expand c:\windows\repair\command.co_ c:\windows\system32\

Hope u are able to do ur C programming

Shane Russell2nd Line Desktop SupportCommented:
Rahul I already made that suggestion here :

Comment from gecko_au2003
Date: 07/03/2005 10:51PM BST
Too bad svaria has not responded. Actually, the posts by the experts were quite diverse, and I would think that at least one of them would solve the problem.

Failing a response from svaria, I would suggest an equal point split between all participants on this question. Thanks.
Shane Russell2nd Line Desktop SupportCommented:
I agree with coderlen :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Operating Systems

From novice to tech pro — start learning today.