delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/09/22/17:01:35

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "skylazart" <skylazart AT gmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: fork () system () in windows 32
Date: 22 Sep 2006 13:59:52 -0700
Organization: http://groups.google.com
Lines: 19
Message-ID: <1158958792.016136.195840@e3g2000cwe.googlegroups.com>
NNTP-Posting-Host: 200.220.224.33
Mime-Version: 1.0
X-Trace: posting.google.com 1158958797 25180 127.0.0.1 (22 Sep 2006 20:59:57 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Fri, 22 Sep 2006 20:59:57 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20060904 Debian/1.7.8-1sarge7.2.2,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 ISA01
Complaints-To: groups-abuse AT google DOT com
Injection-Info: e3g2000cwe.googlegroups.com; posting-host=200.220.224.33;
posting-account=3HlXAA0AAADjCUweOPFDY0dx_Y4v75jD
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

How Can I execute in windows something like:

pid = fork ();
if (pid == 0)
{
   system ("C:\\windows\\notepad.exe");
}

if (pid != 0)
{
   exit (0);
}

Sorry, Im new in win32. Im using devcpp IDE.

Thanks a lot in advice!!

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019