{"id":235,"date":"2008-11-08T20:09:58","date_gmt":"2008-11-09T01:09:58","guid":{"rendered":"http:\/\/www.eligrey.com\/?p=235"},"modified":"2024-04-10T23:41:03","modified_gmt":"2024-04-11T06:41:03","slug":"associating-files-without-file-extensions-in-windows","status":"publish","type":"post","link":"https:\/\/eligrey.com\/blog\/associating-files-without-file-extensions-in-windows\/","title":{"rendered":"Associating files without file extensions in Windows"},"content":{"rendered":"<p><a href=\"http:\/\/eligrey.com\/blog\/wp-content\/uploads\/no_file_extension_open.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-236 alignleft\" title=\"Opening file with no file extension in Windows Vista\" src=\"https:\/\/eligrey.com\/blog\/wp-content\/uploads\/no_file_extension_open-300x246.png\" alt=\"\" width=\"300\" height=\"246\" \/><\/a><\/p>\n<p>In Windows, you can associate file extensions with programs so they are opened by those programs by default. When you try to open a file without a file extension (most likely a text file made in a linux <acronym title=\"Operating System\">OS<\/acronym>), you are prompted with the dialog to select a program to open the file but the checkbox to make the program you select <em>always<\/em> open files with the (non-existant) file extension of the current file is disabled. It is still possible to associate all files without file extensions with a program in Windows.<\/p>\n<p>I have made batch files that allow you to set and remove program association on files without file extensions. I have also made two predone batch files for two programs Windows users are very likely to use to open files without file extensions. In the list of batch files after this, you may to check the files out and see that they are safe and will not damage your computer by clicking the &#8220;view source&#8221; link.<br \/>\n<!--more--><br \/>\nIf you are using Windows Vista and do not have the UAC turned off or are not using the &#8220;administrator&#8221; account, right click on the batch file after you download it and select &#8220;Run as administrator&#8221;. The batch file for setting a program of your choice for no file extension association asks for a full path to the executable, which you should put in quotes, but it may sometimes work if you just put the name of the program you want to open the files with. An example of when this works is when you type in Firefox or firefox.exe.<\/p>\n<ul>\n<li><a href=\"http:\/\/code.eligrey.com\/no_file_ext_assoc\/set_no_file_extension_association.bat\">Set the program of your choice for no file extension association<\/a> &#8211; <a href=\"http:\/\/code.eligrey.com\/viewsource.php?file=no_file_ext_assoc%2Fset_no_file_extension_association.bat\">View source<\/a><\/li>\n<li><a href=\"http:\/\/code.eligrey.com\/no_file_ext_assoc\/remove_no_file_extension_association.bat\">Remove any program associations for no file extension<\/a> &#8211; <a href=\"http:\/\/code.eligrey.com\/viewsource.php?file=no_file_ext_assoc%2Fremove_no_file_extension_association.bat\">View source<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In Windows, you can associate file extensions with programs so they are opened by those programs by default. When you try to open a file without a file extension (most likely a text file made in a linux OS), you are prompted with the dialog to select a program to open the file but the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[17,46,47,118,122,181],"class_list":["post-235","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-cmd","tag-file-association","tag-file-extensions","tag-notepad","tag-operating-systems","tag-windows-vista"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pfpUD-3N","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/eligrey.com\/blog\/wp-json\/wp\/v2\/posts\/235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eligrey.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eligrey.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eligrey.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eligrey.com\/blog\/wp-json\/wp\/v2\/comments?post=235"}],"version-history":[{"count":0,"href":"https:\/\/eligrey.com\/blog\/wp-json\/wp\/v2\/posts\/235\/revisions"}],"wp:attachment":[{"href":"https:\/\/eligrey.com\/blog\/wp-json\/wp\/v2\/media?parent=235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eligrey.com\/blog\/wp-json\/wp\/v2\/categories?post=235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eligrey.com\/blog\/wp-json\/wp\/v2\/tags?post=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}