{"id":329,"date":"2021-09-03T19:59:33","date_gmt":"2021-09-03T19:59:33","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/programming-batch-get-the-second-line-of-a-txt-file-27947-html"},"modified":"2021-09-03T19:59:33","modified_gmt":"2021-09-03T19:59:33","slug":"programming-batch-get-the-second-line-of-a-txt-file-27947-html","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/batch-get-the-second-line-of-a-txt-file\/27947.html","title":{"rendered":"Solved [Batch] Get the second line of a txt file"},"content":{"rendered":"<p><td>Hello,<br \/>how do I get the second line of a txt file (harder than it seems)<br \/>I&#8217;m using reg review to get a programs folder.<br \/>this is what it outputs<\/p>\n<pre>\n\nHKEY_LOCAL_MACHINESOFTWAREAutoHotkey\n    InstallDir    REG_SZ    C:Program FilesAutoHotkey\n\n\n<\/pre>\n<p>how do I make it so that it extracts just the location (3rd line)<br \/>if you know of another way that gets just the location (i still want to use the registry because<br \/>because i want it to be dynamic<br \/>Thanks<\/p>\n<p>Mattzz<\/p>\n<\/td>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","meta":{"inline_featured_image":false,"iawp_total_views":38},"question-category":[],"question_tags":[],"class_list":["post-329","question","type-question","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=329"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=329"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=329"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}