tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fw: [Tinycc-devel] windows resources LinkRes2Exe.exe by Mike Henning


From: Laurens Simonis
Subject: Re: Fw: [Tinycc-devel] windows resources LinkRes2Exe.exe by Mike Henning
Date: Thu, 05 Oct 2006 21:28:29 +0200
User-agent: Thunderbird 1.5.0.7 (X11/20060922)

D_FONT),RT_RCDATA);
> and at finally it worked!!! thank you very much!!
> to all, how does one code a c program that knows its executable name and
> can restart itself?


The executable name can be found in argv[0] I think. Starting an exe can be done with system();

#include <stdio.h>

int main(int argc, char **argv)
{
  printf(argv[0]);
  return 0;
}


Laurens





reply via email to

[Prev in Thread] Current Thread [Next in Thread]