Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

The system cannot find the file specified -

$
0
0

Path = ""\\\\ServicerName\\\\TFSLocation\\\\ProjectName\\\\Process.exe""

OR

Path = "C:\\TFS\\Development\\Processes\\ProjectName\\Main\\ProjectDescription\\bin\\Debug\\ProcessEngine.exe"

process.Start() gives me an error Win32Exception was caught  "The System cannot find the file specified".

Is there anything not right with the path above. If I have the exe on my C: drive Project folder.  How would I pass the file name.

Why doesn't it recognize the path that I specify.

            var process = new Process
            {
                StartInfo =
                {
                    FileName = fileName,
                    Arguments = Arguments,
                    UseShellExecute = false,
                    CreateNoWindow = true,
                    RedirectStandardOutput = true,
                    RedirectStandardError = true
                },
                EnableRaisingEvents = true
            };


            bool started = process.Start();


Thank you,


Viewing all articles
Browse latest Browse all 4850

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>