Beispiel #1
0
        private static string FindExecutableLocation(string exe)
        {
            string path = ExplorerSystem.FindExectableInPath(exe);

            if (path == null)
            {
                string cd = Environment.CurrentDirectory;

                if (Try(cd, exe, out path))
                {
                    return(path);
                }


                // SPECIAL CASE: app folder is not in path, continuing past here causes a stack overflow
                // todo


                /*if (Try(AppFolder, exe, out path)) {
                 *      return path;
                 * }*/
            }