A couple problems Programming Software Development by Vexx … // Function Declarations //------------------------------------------------------------------- namespace JavaLaunch { bool file_exists(string filef) { struct stat fileStats; // file information gathered from stat…() return (stat(filef.c_str(), &fileStats) == 0) ? true : false;… Re: A couple problems Programming Software Development by iamthwee I've had similar issues. I've found the easiest way to overcome all this was to write the command to a .bat file then execute the bat file. Re: A couple problems Programming Software Development by Vexx Okay, so I just woke up and took a good look at my first problem. I can't believe I missed this last night probably because I was so tired. Anyhow, I was trying to use the second argument as the end index when it is actually the count. The below code change fixes this problem: [code=c] application_name = application_path.substr(application_path.… Re: A couple problems Programming Software Development by Vexx Still haven't gotten it to work using the batch idea, because I still am using system to execute the batch file. Here is my change: [code=c] // launch the Java application ofstream ofs(string(application_name + ".bat").c_str()); if (application_type == ".jar") { ofs << string("\"" + java_runtime_path … Re: A couple problems Programming Software Development by Vexx Well, looks like this is a lost cause, I've been working on it all day and can't find a fix for the quotes problem. I'm just going to throw in the white flag and rewrite this in C#. Marking thread as solved.