{"id":36653,"date":"2005-01-20T07:00:00","date_gmt":"2005-01-20T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2005\/01\/20\/a-90-byte-whereis-program\/"},"modified":"2005-01-20T07:00:00","modified_gmt":"2005-01-20T07:00:00","slug":"a-90-byte-whereis-program","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20050120-00\/?p=36653","title":{"rendered":"A 90-byte &quot;whereis&quot; program"},"content":{"rendered":"<p>\nSometimes people try too hard.\n<\/p>\n<p>\nYou can download a\n<a HREF=\"http:\/\/www.codeproject.com\/csharp\/whereis.asp?target=whereis\">\nC# program to look for a file on your PATH<\/a>,\nor you can use a 90-character batch file:\n<\/p>\n<pre>\n@for %%e in (%PATHEXT%) do @for %%i in (%1%%e) do @if NOT \"%%~$PATH:i\"==\"\" echo %%~$PATH:i\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes people try too hard. You can download a C# program to look for a file on your PATH, or you can use a 90-character batch file: @for %%e in (%PATHEXT%) do @for %%i in (%1%%e) do @if NOT &#8220;%%~$PATH:i&#8221;==&#8221;&#8221; echo %%~$PATH:i<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[104],"class_list":["post-36653","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-tipssupport"],"acf":[],"blog_post_summary":"<p>Sometimes people try too hard. You can download a C# program to look for a file on your PATH, or you can use a 90-character batch file: @for %%e in (%PATHEXT%) do @for %%i in (%1%%e) do @if NOT &#8220;%%~$PATH:i&#8221;==&#8221;&#8221; echo %%~$PATH:i<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/36653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=36653"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/36653\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=36653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=36653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=36653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}