{"id":334,"date":"2024-10-18T21:00:21","date_gmt":"2024-10-18T13:00:21","guid":{"rendered":"http:\/\/www.gypbf.com\/win10\/334.html"},"modified":"2024-10-18T21:00:21","modified_gmt":"2024-10-18T13:00:21","slug":"win7%e7%b3%bb%e7%bb%9f%e4%b8%8b%e5%b0%86txt%e6%96%87%e4%bb%b6%e5%8e%8b%e7%bc%a9%e4%b8%bazip%e6%a0%bc%e5%bc%8f%e7%9a%84%e7%ae%80%e4%be%bf%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"http:\/\/www.gypbf.com\/win10\/334.html","title":{"rendered":"Win7\u7cfb\u7edf\u4e0b\u5c06TXT\u6587\u4ef6\u538b\u7f29\u4e3aZIP\u683c\u5f0f\u7684\u7b80\u4fbf\u65b9\u6cd5"},"content":{"rendered":"

\u5728Windows 7\u7cfb\u7edf\u4e2d\uff0c\u7528\u6237\u53ef\u80fd\u9700\u8981\u5c06TXT\u6587\u672c\u6587\u4ef6\u538b\u7f29\u6210ZIP\u683c\u5f0f\uff0c\u4ee5\u4fbf\u4e8e\u5b58\u50a8\u548c\u4f20\u8f93\u3002\u867d\u7136Windows 7\u4e0d\u81ea\u5e26\u6587\u4ef6\u538b\u7f29\u529f\u80fd\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e9b\u7b80\u4fbf\u7684\u65b9\u6cd5\u5b9e\u73b0\u3002<\/p>\n

\u65b9\u6cd5\u4e00\uff1a\u4f7f\u7528\u7b2c\u4e09\u65b9\u538b\u7f29\u8f6f\u4ef6<\/h2>\n

1. \u4e0b\u8f7d\u5e76\u5b89\u88c5\u7b2c\u4e09\u65b9\u538b\u7f29\u8f6f\u4ef6\uff0c\u5982WinRAR\u30017-Zip\u7b49\u3002<\/p>\n

2. \u6253\u5f00\u538b\u7f29\u8f6f\u4ef6\uff0c\u627e\u5230\u9700\u8981\u538b\u7f29\u7684TXT\u6587\u4ef6\u3002<\/p>\n

3. \u53f3\u952e\u70b9\u51fbTXT\u6587\u4ef6\uff0c\u9009\u62e9\\”\u6dfb\u52a0\u5230\u538b\u7f29\u6587\u4ef6\\”\u6216\\”\u538b\u7f29\\”\u7b49\u9009\u9879\u3002<\/p>\n

4. \u5728\u5f39\u51fa\u7684\u538b\u7f29\u8bbe\u7f6e\u7a97\u53e3\u4e2d\uff0c\u9009\u62e9ZIP\u683c\u5f0f\uff0c\u8bbe\u7f6e\u538b\u7f29\u7ea7\u522b\u7b49\u53c2\u6570\u3002<\/p>\n

5. \u70b9\u51fb\\”\u786e\u5b9a\\”\u5f00\u59cb\u538b\u7f29\uff0c\u538b\u7f29\u5b8c\u6210\u540e\u4f1a\u5728\u539f\u6587\u4ef6\u6240\u5728\u4f4d\u7f6e\u751f\u6210ZIP\u6587\u4ef6\u3002<\/p>\n

\u65b9\u6cd5\u4e8c\uff1a\u4f7f\u7528Windows\u6279\u5904\u7406\u811a\u672c<\/h2>\n

1. \u6253\u5f00\u8bb0\u4e8b\u672c\uff0c\u8f93\u5165\u4ee5\u4e0b\u6279\u5904\u7406\u547d\u4ee4\uff1a<\/p>\n

“`<\/p>\n

setlocal enabledelayedexpansion<\/p>\n

set \\”file=%1\\”<\/p>\n

set \\”zip=%~n1.zip\\”<\/p>\n

if exist \\”%zip%\\” del \/f \/q \\”%zip%\\”<\/p>\n

powershell -Command \\”Add-Type -Assembly \\’System.IO.Compression.FileSystem\\’; [IO.Compression.ZipFile]::CreateFromDirectory(\\’%file%\\’, \\’%zip%\\’)\\”<\/p>\n

“`<\/p>\n

2. \u4fdd\u5b58\u6587\u4ef6\uff0c\u5c06\u6269\u5c55\u540d\u6539\u4e3a.bat\u3002<\/p>\n

3. \u5c06\u9700\u8981\u538b\u7f29\u7684TXT\u6587\u4ef6\u62d6\u653e\u5230\u8be5\u6279\u5904\u7406\u6587\u4ef6\u4e0a\uff0c\u5373\u53ef\u81ea\u52a8\u751f\u6210ZIP\u538b\u7f29\u6587\u4ef6\u3002<\/p>\n

\u65b9\u6cd5\u4e09\uff1a\u4f7f\u7528\u5728\u7ebf\u538b\u7f29\u5de5\u5177<\/h2>\n

1. \u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u8bbf\u95ee\u5728\u7ebf\u538b\u7f29\u5de5\u5177\u7f51\u7ad9\uff0c\u5982iLoveIMG\u3001Smallpdf\u7b49\u3002<\/p>\n

2. \u9009\u62e9\\”\u538b\u7f29ZIP\\”\u6216\\”ZIP\u6587\u4ef6\u538b\u7f29\\”\u529f\u80fd\u3002<\/p>\n

3. \u6309\u7167\u63d0\u793a\u4e0a\u4f20\u9700\u8981\u538b\u7f29\u7684TXT\u6587\u4ef6\u3002<\/p>\n

4. \u70b9\u51fb\\”\u538b\u7f29\\”\u6216\\”\u5f00\u59cb\u538b\u7f29\\”\u6309\u94ae\uff0c\u7b49\u5f85\u538b\u7f29\u5b8c\u6210\u3002<\/p>\n

5. \u4e0b\u8f7d\u751f\u6210\u7684ZIP\u6587\u4ef6\u5230\u672c\u5730\u3002<\/p>\n

\u65b9\u6cd5\u56db\uff1a\u4f7f\u7528Windows PowerShell<\/h2>\n

1. \u6253\u5f00Windows PowerShell\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

“`<\/p>\n

Compress-Archive -Path \\”C:\\\\path\\\\to\\\\your\\\\txtfile.txt\\” -DestinationPath \\”C:\\\\path\\\\to\\\\output\\\\zipfile.zip\\”<\/p>\n

“`<\/p>\n

2. \u5c06\\”C:\\\\path\\\\to\\\\your\\\\txtfile.txt\\”\u66ff\u6362\u4e3aTXT\u6587\u4ef6\u7684\u5b8c\u6574\u8def\u5f84\u3002<\/p>\n

3. \u5c06\\”C:\\\\path\\\\to\\\\output\\\\zipfile.zip\\”\u66ff\u6362\u4e3a\u751f\u6210ZIP\u6587\u4ef6\u7684\u8def\u5f84\u3002<\/p>\n

4. \u6309\u56de\u8f66\u952e\u6267\u884c\u547d\u4ee4\uff0c\u538b\u7f29\u5b8c\u6210\u540e\u4f1a\u5728\u6307\u5b9a\u4f4d\u7f6e\u751f\u6210ZIP\u6587\u4ef6\u3002<\/p>\n

\u4ee5\u4e0a\u5c31\u662f\u5728Windows 7\u7cfb\u7edf\u4e0b\u5c06TXT\u6587\u4ef6\u538b\u7f29\u4e3aZIP\u683c\u5f0f\u7684\u56db\u79cd\u7b80\u4fbf\u65b9\u6cd5\u3002\u7528\u6237\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u548c\u4e60\u60ef\u9009\u62e9\u9002\u5408\u7684\u65b9\u6cd5\u3002\u65e0\u8bba\u4f7f\u7528\u54ea\u79cd\u65b9\u6cd5\uff0c\u90fd\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0TXT\u6587\u4ef6\u7684\u538b\u7f29\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728Windows 7\u7cfb\u7edf\u4e2d\uff0c\u7528\u6237\u53ef\u80fd\u9700\u8981\u5c06TXT\u6587\u672c\u6587\u4ef6\u538b\u7f29\u6210ZIP\u683c\u5f0f\uff0c\u4ee5\u4fbf\u4e8e\u5b58\u50a8\u548c\u4f20\u8f93\u3002\u867d\u7136Windows […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-334","post","type-post","status-publish","format-standard","hentry","category-win10"],"_links":{"self":[{"href":"http:\/\/www.gypbf.com\/wp-json\/wp\/v2\/posts\/334"}],"collection":[{"href":"http:\/\/www.gypbf.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gypbf.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gypbf.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gypbf.com\/wp-json\/wp\/v2\/comments?post=334"}],"version-history":[{"count":0,"href":"http:\/\/www.gypbf.com\/wp-json\/wp\/v2\/posts\/334\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.gypbf.com\/wp-json\/wp\/v2\/media?parent=334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gypbf.com\/wp-json\/wp\/v2\/categories?post=334"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gypbf.com\/wp-json\/wp\/v2\/tags?post=334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}