ppts.net
当前位置:首页>>关于批处理winrar命令 ,如何批量解压缩到每个单独的文...的资料>>

批处理winrar命令 ,如何批量解压缩到每个单独的文...

@echo offset "rar=C:\Program Files\WinRAR\WinRAR.exe""%rar%" x -ad -y *.rarpause将此批处理和你要解压的rar文件放在一起.默认解压当前目录下所有rar文件. 下面的代码可以处理子文件夹中的rar文件. @echo offset "rar=C:\Program Files\WinR...

保证能用,建一个bat文件,把下面的拷贝进去,然后和你那些rar放到一个目录里面 for %%i in (a.rar,b.rar,c.rar) do "C:\Program Files\WinRAR\rar.exe" x %%i .\%%~ni\

@echo offfor /f "tokens=2 delims==" %%a in ('assoc .rar') do ( for /f "tokens=2 delims==" %%1 in ('ftype %%a') do (set "rar="%%~dp1rar""))echo a|%rar% e "要解压的文件.rar"pause

@echo offset WinRar=C:\Program Files\WinRAR\rar.exe"%WinRAR%" rn Desktop.rar 同款.png 同款.jpg 新建文件夹 照片文件夹"%WinRAR%" x Desktop.rarpause

使用if命令来比较

@echo off set "des=A" set "src=B" mkdir D:\backup%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%\ forfiles /p %des% /s /d -7 /c "cmd /c copy /y @file D:\backup%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%" "c:\Program Files\WinRAR\WinRAR.exe" a /ibck /m...

@echo off::设定WinRAR的安装路径,自行修改set "winrarpath=C:\Program Files\WinRAR\Rar.exe"::设定txt文件所在目录,自行修改set "fdir=D:\B\"cd /d "%fdir%"for %%a in (*.txt) do ("%winrarpath%" a -m3 "%~dp0%%~na.rar" "%%a")pause互助...

@echo offfor /f %%i in ('dir /a-d/b/w *.rar *zip') do ("C:\Progra~1\WinRAR\WinRAR.exe" e -y %%i "%%~ni\")for /f %%a in ('dir /ad/b/w') do (pushd %%afor /f %%b in ('dir /a-d/b/w *.rar *.zip') do ("C:\Progra~1\WinRAR\WinRAR.exe" ...

保证能用,建一个bat文件,把下面的拷贝进去,然后和你那些rar放到一个目录里面 for %%i in (a.rar,b.rar,c.rar) do "C:\Program Files\WinRAR\rar.exe" x %%i .\%%~ni\

@Echo off&Color a&SetLocal EnableDelayedExpansion For /f "tokens=2 delims==" %%a IN ('ftype^|find "WinRAR"') DO ( Set rar=%%a Goto :next ) :next Set rar=%rar: "%1"=% For %%a IN (%*) DO ( %rar% a -ibck -v838860 -ep1 -ilogc:.\rar...

网站首页 | 网站地图
All rights reserved Powered by www.ppts.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com