{"id":53,"date":"2011-04-22T08:09:00","date_gmt":"2011-04-22T08:09:00","guid":{"rendered":"https:\/\/wdev-blog.azurewebsites.net\/index.php\/2011\/04\/22\/rar-and-unrar-in-dos-cmd\/"},"modified":"2011-04-22T08:09:00","modified_gmt":"2011-04-22T08:09:00","slug":"rar-and-unrar-in-dos-cmd","status":"publish","type":"post","link":"http:\/\/panahy.nl\/index.php\/2011\/04\/22\/rar-and-unrar-in-dos-cmd\/","title":{"rendered":"Rar and UnRar in DOS.cmd"},"content":{"rendered":"<p>To Rar all directories in the current folder and make a rar file using the folder name:<\/p>\n<pre><code>@echo off<br \/>@setlocal<br \/>REM<br \/>REM Unrar all .rar files on the current directory and use the full path<br \/>REM<br \/><br \/>set path=\"%ProgramFiles(x86)%WinRAR\";%path%<br \/>for \/F %%i in ('dir \/b *.rar') do call :do_extract \"%%i\"<br \/><br \/>:eof<br \/>pause<br \/>exit 1<br \/><br \/>:do_extract<br \/>echo %1<br \/>REM  x  : Extract files with full path<br \/>REM -y : Assume Yes on all queries<br \/>unrar x -y %1<\/code><\/pre>\n<p>To Unrar all files in the current location using FullPath:<\/p>\n<pre><code><br \/>@echo off<br \/>@setlocal<br \/>REM<br \/>REM Unrar all .rar files on the current directory and use the full path<br \/>REM<br \/><br \/>set path=\"%ProgramFiles(x86)%WinRAR\";%path%<br \/>for \/F %%i in ('dir \/b *.rar') do call :do_extract \"%%i\"<br \/><br \/>:eof<br \/>pause<br \/>exit 1<br \/><br \/>:do_extract<br \/>echo %1<br \/>REM  x  : Extract files with full path<br \/>REM -y : Assume Yes on all queries<br \/>unrar x -y %1<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>To Rar all directories in the current folder and make a rar file using the folder name: @echo off@setlocalREMREM Unrar all .rar files on the current directory and use the full pathREMset path=&#8221;%ProgramFiles(x86)%WinRAR&#8221;;%path%for \/F %%i in (&#8216;dir \/b *.rar&#8217;) do call :do_extract &#8220;%%i&#8221;:eofpauseexit 1:do_extractecho %1REM x : Extract files with full pathREM -y : Assume &hellip; <a href=\"http:\/\/panahy.nl\/index.php\/2011\/04\/22\/rar-and-unrar-in-dos-cmd\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Rar and UnRar in DOS.cmd&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[46,47,44,45],"tags":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false},"uagb_author_info":{"display_name":"Pouya Panahy","author_link":"http:\/\/panahy.nl\/index.php\/author\/pouya\/"},"uagb_comment_info":0,"uagb_excerpt":"To Rar all directories in the current folder and make a rar file using the folder name: @echo off@setlocalREMREM Unrar all .rar files on the current directory and use the full pathREMset path=\"%ProgramFiles(x86)%WinRAR\";%path%for \/F %%i in ('dir \/b *.rar') do call :do_extract \"%%i\":eofpauseexit 1:do_extractecho %1REM x : Extract files with full pathREM -y : Assume&hellip;","_links":{"self":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/posts\/53"}],"collection":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/comments?post=53"}],"version-history":[{"count":0,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/posts\/53\/revisions"}],"wp:attachment":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/media?parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/categories?post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/tags?post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}