Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

cpp boy

making a .bat whit vc++

This topic is 6012 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

no can''t - nope.

You can use the old Microsoft C++ compiler, or Visual C++ up to version 1.52, or Borland Turbo C, or Watcom (v12 or 13? was the last - that''s the one DOS4GW came from). I imagine CodeWarrior might have an old DOS compiler, but I''m certain.
There may be a flavor of gcc that compiles DOS exes... actually I think it''s call djgpp.

Share this post

Link to post
Share on other sites
".bat" and "ms-dos executable" are two different things. but like what Kylotan said, I would just use a normal text editor (notepad) and then write something and then rename it to .bat (from the default .txt).

Share this post

Link to post
Share on other sites
Here is how to do a nice bat-file.
FILE* pFile = fopen("c:\\test.bat", "wt");
if (pFile != NULL)
fprintf(pFile, "@echo off\n");
fprintf(pFile, "echo Going recursive...\n");
fprintf(pFile, "c:\\test.bat\n");

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!