{"flag":true,"single":true,"pageTitle":"execute any command in cmd using right click menu ie make new text file using right click","post":{"id":183,"user_id":"1","slug":"execute-any-command-in-cmd-using-right-click-menu-ie-make-new-text-file-using-right-click-sopf","title":"execute any command in cmd using right click menu ie make new text file using right click","body":"<p>To add a custom \"<strong>Create Text File Here<\/strong>\" option to the right-click context menu in Windows, you can use the Windows Registry Editor. Follow these steps:<\/p>\r\n<ol>\r\n<li>Press <strong>Win + R <\/strong>to open the Run dialog box.<\/li>\r\n<li>Type regedit and press Enter to open the Windows Registry Editor.<\/li>\r\n<li>Navigate to the following registry key:&nbsp;<strong>HKEY_CLASSES_ROOT\\Directory\\Background\\shell<\/strong><\/li>\r\n<li>Right-click on the \"shell\" key in the left pane, choose \"New,\" and then \"Key.\" Name the new key whatever you want your context menu option to be. For example, name it \"CreateTextFileHere.\"<\/li>\r\n<li>Right-click on the newly created key (e.g., \"CreateTextFileHere\"), choose \"New,\" and then \"Key\" again. Name this new key \"command.\"<\/li>\r\n<li>In the right pane, double-click the \"(Default)\" value and set the Value Data to:\r\n<pre class=\"language-markup\"><code>cmd \/c cd %V &amp; echo &gt;NewTextFile.txt<\/code><\/pre>\r\n<\/li>\r\n<li>Now, when you right-click on the desktop or any folder, you should see the \"Create Text File Here\" option in the context menu. When you select it, it will create the new file.<\/li>\r\n<\/ol>","category_id":"18","is_private":"0","created_at":"2023-09-12T23:06:25.000000Z","updated_at":"2023-09-12T23:16:46.000000Z","category":{"id":18,"user_id":"1","name":"Tutorials","slug":"tutorials-n3lw","parent_id":null,"created_at":"2023-04-01T17:24:32.000000Z","updated_at":"2023-04-01T17:24:32.000000Z"},"user":{"id":1,"name":"R GONDAL","email":"rizikmw@gmail.com","email_verified_at":null,"two_factor_confirmed_at":null,"current_team_id":"1","profile_photo_path":null,"created_at":"2023-03-12T10:49:33.000000Z","updated_at":"2025-01-10T12:59:00.000000Z","profile_photo_url":"https:\/\/ui-avatars.com\/api\/?name=R+G&color=7F9CF5&background=EBF4FF"}},"pageDesc":"To add a custom \"Create Text File Here\" option to the right-click context menu in Windows, you can use the Windows Registry Editor. Follow t - execute any command in cmd using right click menu ie make new text file using right click (Updated: September 12, 2023) - Read more about execute any command in cmd using right click menu ie make new text file using right click at my programming site [SITE]","categories":[]}