中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 05:01
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » Regarding using batch processing to associate WinRAR and extract files
Printable Version  2,655 / 22
Floor16 lisyofun Posted 2009-03-13 11:25
初级用户 Posts 61 Credits 87
Hehe, thank you. Then just import the following registry:

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\WinRAR\shell\open\command]
@="\"C:\\Program Files\\WinRAR\\unrar.exe\" x -o+ -y \"%1\" E:\\Temporary Download Archive Area\\"
Floor17 yishanju Posted 2009-03-13 12:48
银牌会员 Posts 1,357 Credits 1,488
It seems that using winrar.exe and rar.exe is also okay. When extracting, WINRAR.EXE will pop up a graphical window, and RAR.EXE UNRAR.EXE pop up command-line windows. If you have tried it, please reply the result to me. ^_^
Floor18 lisyofun Posted 2009-03-14 11:13
初级用户 Posts 61 Credits 87
Well, either is fine. winrar.exe is the graphical interface, and rar.exe is the command-line interface.
Floor19 efrem Posted 2009-06-15 03:00
新手上路 Posts 2 Credits 2
Please help from the great experts, the program I want is: decompress the compressed files updated on the current day in the specified directory to the specified directory

[ Last edited by efrem on 2009-6-15 at 03:24 ]
Floor20 不得不爱 Posted 2009-06-16 00:53
超级版主 Posts 2,044 Credits 5,310 From 四川南充
ftype winrar="C:\Program Files\WinRAR\WinRAR.exe" x -y "%1" E:\临时下载区
ftype WinRAR.ZIP="C:\Program Files\WinRAR\WinRAR.exe" x -y "%1" E:\临时下载区
Floor21 wolfkin911 Posted 2009-06-16 02:50
新手上路 Posts 3 Credits 4
Originally posted by lisyofun at 2009-3-4 17:53:
This is the content in jieyazip.bat:
@echo off
title Decompressing....
echo Decompressing, if the file is large, it may take some time.
"%programfiles%\winrar\winrar" x -y "*.zip" E:\Temporary Download Archive Area >nul 2>nul
exit

I originally only wanted to decompress the file that the user clicked, but I don't know how to obtain that variable. I tried %0 and %1
Neither worked, so I had to use *.zip and *.rar instead.
Now the problem is that every time I decompress a file, it decompresses all RAR or ZIP files in the current directory.
How can I only decompress the currently clicked file?



It's %1
"%programfiles%\winrar\winrar" x -y "%1" E:\Temporary Download Archive Area
Floor22 efrem Posted 2009-06-16 04:47
新手上路 Posts 2 Credits 2
Why is there no one responding to me?
Floor23 wayaoqiang Posted 2009-06-16 05:09
新手上路 Posts 7 Credits 8
The idea is good, can make a virus.
Prev  1 2
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023