static void Initialize()
{
//create the bat file for compiling the C++ source file
DirectoryInfo di = new DirectoryInfo(Directory);
if (!di.Exists)
di.Create();
FileInfo fi = new FileInfo(BatFilePath);
if (fi.Exists)
fi.IsReadOnly = false;
StreamWriter sw = new StreamWriter(CppTest.BatFilePath);
sw.WriteLine(@"
call ""C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat""
cl /LD " + SourceFile); //option /O2 takes too much time
sw.Close();
}