Passing path as argument to process C# -
i have following code trying call c++ console app c#. log file keeps telling me can't open config file. proper way write path argument in case?
process process = new process(); process.startinfo.filename = "c:\\mycapp.exe"; process.startinfo.arguments = "c:\\config.txt"; // put arguments here process.startinfo.useshellexecute = false; process.startinfo.createnowindow = true; process.start(); process.waitforexit();
your method right (just tested sample). think problem in c++ application or in wrong file access.
may file opened in c# application , not closed yet?
Comments
Post a Comment