: What is wrong with:
: status = execlp("uzip4os2.exe", "c:\\in\\prot\\", "-o -j -q", zipFile);
: that it makes my PC crash when executed?
: With this call, I execute an unzipper for os/2. As argv[0] I give 'm some
: pathname, and the other two are parameters (filename and some switches).
: Does anyone know what's wrong?
First of all, you need to add one NULL parameter at the end that
will let the exelp function know when to stop reading arguments. Another
thing is that the first argument passed to unzip should be unzip, ie:
execlp("unzip4os2.exe", "unzip4os2.exe", "c:\\in\\prot\\",
"-o -j -q", zipFile, NULL);
Hope it helps,
-Keys
------------------------------------------------------------------------
!!!! Everyone who owns a computer and plans to still be using it in
the next five years should really visit this URL I found while
surfing. http://www.vcnet.com/bms/
It's the "Boycott Microsoft" page. Read all of the beginning
articles. Tell your friends. Read the stuff even if you never
intend to boycott MS products. It's kind of scary.
------------------------------------------------------------------------