Re: [newbie] Call command line function from windows c++ program



 DEVELOP > c-Plus-Plus > Re: [newbie] Call command line function from windows c++ program

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1
Topic: DEVELOP > c-Plus-Plus
User: "David White"
Date: 23 Jul 2003 11:36:54 PM
Object: Re: [newbie] Call command line function from windows c++ program
Peggy <bubdragon@yahoo.com> wrote in message
news:33d49d55.0307231956.6587db8d@posting.google.com...

Hi,

I recently tried
system( "wzzip [params]" );
to use winzip to zip certain files in the directory but it doesn't
work.
I thought system() would look for commands in the PATH variable and it
should be able to find it since I am able to type in "wzzip ... " from
Start->Run->cmd.

I tried to use the function again with just a windows built-in command
like this:
system( "dir" )
and it works.

Can someone tell me what's wrong and how I can fix this problem?

Not in this newsgroup. The C++ language knows nothing of the PATH variable
or what a given operating system should do with a given system command. You
will get the answer in a Windows programming newgroup.
DW
.


  Page 1 of 1


Related Articles
Can't Find Answer Any Where (What would you do/try): fopen ("file on shared drive","w+") doesn't work on 2nd call using Windows LabView DDL
Gsoap webservice call Crash on Windows 2000 SP4
grab system() call output
C call C++ fuction and iostream
Constructors that call other Constructors
how to call system command with variable parameters?
C++/Solaris: retrieving args from an execv() call - and I am an idiotwith pointers
call graphs with doxygen and dot cause problems
Aborting CALL to stored procedure
Function call selection using ternary operator
g++296: no matching function for call to istrstream::str()
Re: Why call member function through this pointer?
How to call a function with variable argument list...
How can I call class member function by a globle function pointer?
OT: How to call a bash function within a makefile
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER