[BCB6] exe openen vanuit code

Pagina: 1
Acties:

  • A_to_the_S
  • Registratie: Maart 2003
  • Laatst online: 15-10-2025
Ik vroeg me af of iemand weet of het mogelijk is om een exe bestand te openen vanuit de c++ code.
Het bestand hoort in principe bij het programma.
En ik wil het ze niet aandoen om de apparte bestanden zelf continu te openen

Of is dit alles uitgesloten ivm virussen en trojans ed, wat ik tevens kan begrijpen.

  • NMe
  • Registratie: Februari 2004
  • Laatst online: 15-04 22:07

NMe

Quia Ego Sic Dico.

Ken je de system()-functie?
C++:
1
system("blaat.exe");


Kun je de volgende keer wat meer info geven over wat je al gevonden en/of geprobeerd hebt?

[ Voor 44% gewijzigd door NMe op 30-05-2005 22:30 ]

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.


  • Creepy
  • Registratie: Juni 2001
  • Laatst online: 06-05 18:51

Creepy

Tactical Espionage Splatterer

En zie http://msdn.microsoft.com...oc/base/createprocess.asp voor als je meer controle wilt.

Maaruh, met een beetje gegoogle had je in elk geval system() moeten kunnen vinden, en met iets meer moeite createprocess() ook wel ;)

"I had a problem, I solved it with regular expressions. Now I have two problems". That's shows a lack of appreciation for regular expressions: "I know have _star_ problems" --Kevlin Henney


  • A_to_the_S
  • Registratie: Maart 2003
  • Laatst online: 15-10-2025
-NMe- schreef op maandag 30 mei 2005 @ 22:29:
Ken je de system()-functie?
C++:
1
system("blaat.exe");


Kun je de volgende keer wat meer info geven over wat je al gevonden en/of geprobeerd hebt?
Maar
C++:
1
system("blaat.exe");
doet het niet onder XP (wel onder 98)

  • NMe
  • Registratie: Februari 2004
  • Laatst online: 15-04 22:07

NMe

Quia Ego Sic Dico.

Ow? Nooit geprobeerd. * NMe == Win2k user. :P

Anyway, Creepy's tip dan? Heb je die ook geprobeerd? :)

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.


  • H!GHGuY
  • Registratie: December 2002
  • Niet online

H!GHGuY

Try and take over the world...

er bestaan dacht ik ook _exec() functies... ze bestaan in verschillende varianten...

even zoeken in de MSDN en dan vind je ze heus wel ;)

ASSUME makes an ASS out of U and ME


  • LordLarry
  • Registratie: Juli 2001
  • Niet online

LordLarry

Aut disce aut discede

Of ShellExecute uit de win32 api

We adore chaos because we like to restore order - M.C. Escher

Pagina: 1