Unix "system " command

A

aki

Hello ,

i want to use system commnad in my code to delete files in specified
manner.
but this way i am not able to delete files.
Can somebody answer .



i tried with this as following , but not working :(
string omcid;
string netype ;
string nename ;

//some stuff to get values inside these string variables

cout<<"omcid"<<omcid<<endl; // here i printed the value it
iscoming correct
cout<<"netype"<<netype<<endl;// here also
cout<<"nename"<<nename<<endl; // here also
system( ("rm -f /path/" + omcid + '_' + netype + '_' + nename
+"_*_trans.csv").c_str() ) ;

thanks
aki
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top