

InterviewSolution
Saved Bookmarks
1. |
Solve : decompressed files automation? |
Answer» <html><body><p>I have a huge amount of zip and rar files I need to reorganize. <br/><br/>I would like an interactive batch file for : <br/><br/><br/>***** First rule ******<br/>1. Scan a folder or drive to locate all rar and zip files that contains only a single folder, and unzip that compressed file in the same folder that the compressed file. <br/>2. Delete the initial compressed file<br/><br/>Best Regards<br/><br/><br/><br/>You can search for a certain file type by using <strong>DIR</strong><br/><br/>To Search out all .rar files in the current folder type <strong>dir /a *.rar /b</strong> to search out all .rar files in the current folder and all subfolders type <strong>dir /a *.rar /b /s</strong>. To Unzip / Decompress the files i <a href="https://interviewquestions.tuteehub.com/tag/recommend-1180268" style="font-weight:bold;" target="_blank" title="Click to know more about RECOMMEND">RECOMMEND</a> using 7Zip As it <a href="https://interviewquestions.tuteehub.com/tag/includes-1039937" style="font-weight:bold;" target="_blank" title="Click to know more about INCLUDES">INCLUDES</a> a command line tool, you can download it here <a href="https://www.7-zip.org">www.7-zip.org</a>, <a href="https://interviewquestions.tuteehub.com/tag/id-251286" style="font-weight:bold;" target="_blank" title="Click to know more about ID">ID</a> also recommend putting the hole thing in a for loop.<br/><br/>For /<a href="https://interviewquestions.tuteehub.com/tag/f-236701" style="font-weight:bold;" target="_blank" title="Click to know more about F">F</a> "tokens=1*" %%a in ('dir /a *.rar /b /s') do (<br/> 7z e "%%a%%b"<br/>)<br/><br/><br/>Okis. <br/>Thank you very much. <br/>The problem is extract and decide. <br/><br/>Best Regards<br/></p></body></html> | |