Bennu Game Development

English Forums => Resources => Topic started by: MisterN on August 25, 2012, 09:33:00 PM

Title: loading .bat files form c++
Post by: MisterN on August 25, 2012, 09:33:00 PM
if you decide to make a hub for your game or something like that, this will work.
http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/f8564e31-a3d6-4674-bfee-68ed0fe20126
Title: Re:loading .bat files form c++
Post by: SplinterGU on August 26, 2012, 04:05:18 AM
sure... you can use EXEC or I don't understand you.
Title: Re:loading .bat files form c++
Post by: MisterN on August 26, 2012, 05:37:09 AM
no it works, if you were gonna have visual c++ open up a .bat file to run a bennu game, youd use that
Title: Re:loading .bat files form c++
Post by: SplinterGU on August 26, 2012, 05:48:38 AM
oh, sorry, I was understand call a bat from bennugd.

from C you must run it with cmd.exe, for example:

system( "cmd.exe /C mybat.bat" );