1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| public bool LoadDatabase(string _FileIN)
{
string PathIN = string.Concat(Path.str_PCM_CUSTOMDB_DIRECTORY,_FileIN,".cdb");//build source file
string PathOUT = string.Concat(Path.str_EXPORT_DIRECTORY, _FileIN,@"\export.xml");//build dest file
string parametres = string.Format(" -input {0} -output {1} -ToXML", PathIN, PathOUT);//build command line
try
{
ProcessStartInfo infos = new ProcessStartInfo(Path.str_EXPORTER_FILE);
infos.Arguments = parametres;
infos.WindowStyle = ProcessWindowStyle.Hidden;//Hide process for silent use
Process proc = Process.Start(infos);
}
catch (Exception) { tools.msgbox("Error during export"); }
while (!proc.HasExited) { }
return true;
} |
Partager