Jump to content

Execute an .exe file through c program

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1
crabypatty

crabypatty

    Newbie

  • Members
  • Pip
  • 4 posts
How To do this do anyone know??? how to Execute an .exe file through c program.

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Please don't ask questions in the tutorial sections. Moved.

#3
crabypatty

crabypatty

    Newbie

  • Members
  • Pip
  • 4 posts
Hey Just let me have the answer and this will the tutorial for "Executing an .exe file through c program "

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Use the system function.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
crabypatty

crabypatty

    Newbie

  • Members
  • Pip
  • 4 posts
HEy man suppose I have a exe file like "abc.exe"

then will this do?

#include<stdlib.h>
void main()
{
system("C:/abc.exe");
}

#6
dcs

dcs

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 775 posts
Cprogramming.com: FAQ

#7
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Assuming abc.exe is located in the root of C:, yes.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#8
crabypatty

crabypatty

    Newbie

  • Members
  • Pip
  • 4 posts
Thanks for support friends......:)