Hi,
The was my application works is that my C++ .exe will create a .bat file, which will then in turn run the .bat file.
ofstream myfile ("tmp.bat");
if (myfile.is_open())
{
myfile << "keytool –import –alias exe –file cert.cer –key example\n";
myfile.close();
system("tmp");
The batch file is created, however does not run this keytool command correctly.
The important thing here is that if I go and manually edit that batch file created by my .exe, it works. If I delete all spaces in the command e.g keytool<del here>-import and re-space, it works??
Is there some sort of "whitespace" that I am not aware of??
Note: Some code removed.
Thanks for your help in advance!