I'm trying to use the system() command to invoke "eseutil.exe" and store the output in a text file using VC++. The way i used this command is mentioned below.
string command= "\"C:\\Program Files\\Microsoft\\Exchange Server\\Bin\\eseutil.exe\" /mh \"F:\\fsg\\edb\\mailbox database.edb\" | find \"Log Required\" >output.txt"; system(command.c_str());
Compilation is success. But while executing the program i'm getting the following error.
'C:\program' is not recognized as an internal or external command,
operable program or batch file.
1. Is it possible to use system command as above (with full path)?
2. Is it mandatory to specify the path or simply like system("eseutil.exe /mh \"F:\\fsg\\edb\\mailbox database.edb\" | find \"Log Required\" >output.txt"); is enough?
3. If path is not specified to eseutil, will system command automatically detects the path ?
Can anyone explain or give any link that explains the behavior of system() command ?
Edited 6 Years Ago by inmar: n/a