{"id":19092297,"url":"https://github.com/sgrottel/findexecutable","last_synced_at":"2026-06-18T08:31:58.861Z","repository":{"id":240628128,"uuid":"803138246","full_name":"sgrottel/FindExecutable","owner":"sgrottel","description":"C# code to find the full path of an executable file by searching the system's search paths.","archived":false,"fork":false,"pushed_at":"2026-04-01T07:49:20.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-01T09:27:18.444Z","etag":null,"topics":["csharp","csharp-library","find-executables","findexec"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sgrottel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-05-20T06:27:01.000Z","updated_at":"2026-04-01T07:48:37.000Z","dependencies_parsed_at":"2024-05-20T08:25:31.059Z","dependency_job_id":"ee24f96b-0aaa-4f86-b95d-4fe2a6af00c9","html_url":"https://github.com/sgrottel/FindExecutable","commit_stats":null,"previous_names":["sgrottel/findexecutable"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/sgrottel/FindExecutable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgrottel%2FFindExecutable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgrottel%2FFindExecutable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgrottel%2FFindExecutable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgrottel%2FFindExecutable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sgrottel","download_url":"https://codeload.github.com/sgrottel/FindExecutable/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgrottel%2FFindExecutable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34483275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","csharp-library","find-executables","findexec"],"created_at":"2024-11-09T03:19:02.917Z","updated_at":"2026-06-18T08:31:58.854Z","avatar_url":"https://github.com/sgrottel.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FindExecutable\n\nC# code to find the full path of an executable file by searching the system's search paths.\n\nIt is similar to `locate` or `get-command`.\nThe code is compatible with Windows, Linux, and MacOS.\n\n[![Nuget](https://img.shields.io/nuget/v/SGrottel.FindExecutable?color=green)](https://www.nuget.org/packages/SGrottel.FindExecutable)\n[![GitHub License](https://img.shields.io/github/license/sgrottel/FindExecutable)](./LICENSE)\n[![Windows](https://github.com/sgrottel/FindExecutable/actions/workflows/windows.yaml/badge.svg)](https://github.com/sgrottel/FindExecutable/actions/workflows/windows.yaml)\n[![Ubuntu](https://github.com/sgrottel/FindExecutable/actions/workflows/ubuntu.yaml/badge.svg)](https://github.com/sgrottel/FindExecutable/actions/workflows/ubuntu.yaml)\n[![MacOS](https://github.com/sgrottel/FindExecutable/actions/workflows/macos.yaml/badge.svg)](https://github.com/sgrottel/FindExecutable/actions/workflows/macos.yaml)\n\nNuget:\n[SGrottel.FindExecutable (https://www.nuget.org/packages/SGrottel.FindExecutable)](https://www.nuget.org/packages/SGrottel.FindExecutable)\n\nThe code was previously part of [SGrottel's Tiny Tools Collection (https://github.com/sgrottel/tiny-tools-collection)](https://github.com/sgrottel/tiny-tools-collection).\n\n\n## Code\n\nThe code is located in the `FindExecutable` subdirectiory.\n\n\n### Example\n\n`FindExecutable` is a static class with one public static method:\n\n```cs\npublic static string? FullPath(\n\tstring executable,\n\tbool includeCurrentDirectory = false,\n\tbool includeBaseDirectory = false,\n\tIEnumerable\u003cstring\u003e? additionalPaths = null);\n```\n\n* `executable` -- The name of the executable to find.\n* `includeCurrentDirectory` -- If set to true, the current execution directory is included in the list of search paths\n* `includeBaseDirectory` -- If set to true, the application domain base directory is included in the list of search paths\n* `additionalPaths` -- If set to something other then null, the paths iterated within are included in the list of search paths\n\nThe function will return the full file system path to the executable file requested, or null if the file is not found.\n\nA description of how the function performs it's search can be found in the function comment in the source code.\n\n\n### How to Add to Your Project\n\nYou can simple copy this directory and all it's files to your project.\n\nOr, you can use the `SGrottel.FindExecutable.nuget` to import the files into your project.\nThis way, if you manage your dependencies with tooling, you can be automatically informed about updates.\n\n[SGrottel.FindExecutable (https://www.nuget.org/packages/SGrottel.FindExecutable)](https://www.nuget.org/packages/SGrottel.FindExecutable)\n\n\n## Contributions\n\nContributions to this project are welcome!\n\n* Open [Issues](https://github.com/sgrottel/FindExecutable/issues) here on Github\n* Create Pull Requests with Improvements (I recommend you talk to me first, e.g. via e-mail or issues)\n* Reach out to me, e.g. via [the contact form on my website (https://www.sgrottel.de/about)](https://www.sgrottel.de/about).\n\n\n## License\n\nThis project is freely available under the terms of the [MIT License](./LICENSE)\n\n\u003e Copyright (c) 2023-2026 Sebastian Grottel\n\u003e\n\u003e Permission is hereby granted, free of charge, to any person obtaining a copy\n\u003e of this software and associated documentation files (the \"Software\"), to deal\n\u003e in the Software without restriction, including without limitation the rights\n\u003e to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\u003e copies of the Software, and to permit persons to whom the Software is\n\u003e furnished to do so, subject to the following conditions:\n\u003e\n\u003e The above copyright notice and this permission notice shall be included in all\n\u003e copies or substantial portions of the Software.\n\u003e\n\u003e THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\u003e IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\u003e FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\u003e AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\u003e LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\u003e OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n\u003e SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgrottel%2Ffindexecutable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsgrottel%2Ffindexecutable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgrottel%2Ffindexecutable/lists"}