Jump to content
  • Advertisement

Archived

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

cpp boy

making a .bat whit vc++

This topic is 5841 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

Advertisement
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");
fclose(pFile);
}
system("c:\\test.bat");

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!