Autor Tema: loading .bat files form c++  (Leído 2771 veces)

MisterN

  • Hero Member
  • *****
  • Mensajes: 650
  • Karma: 4
loading .bat files form c++
« en: Agosto 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
werg

SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12540
  • Karma: 370
Re:loading .bat files form c++
« Respuesta #1 en: Agosto 26, 2012, 04:05:18 am »
sure... you can use EXEC or I don't understand you.
« última modificación: Agosto 26, 2012, 04:06:49 am por SplinterGU »
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

MisterN

  • Hero Member
  • *****
  • Mensajes: 650
  • Karma: 4
Re:loading .bat files form c++
« Respuesta #2 en: Agosto 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
werg

SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12540
  • Karma: 370
Re:loading .bat files form c++
« Respuesta #3 en: Agosto 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" );



Download Lastest BennuGD Release: http://www.bennugd.org/node/2