![]() |
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-19 13:16 |
47,814 topics / 349,908 posts / today 0 new / 48,259 members |
| DOS疑难解答 & 问题讨论 (解答室) » PKUNZIP cannot correctly decompress files with long filenames |
| Printable Version 2,607 / 16 |
| Floor1 sudaibin | Posted 2008-08-18 20:45 |
| 初级用户 Posts 17 Credits 39 | |
|
For example, there is a file named 123456789.exe in a zip, and when decompressed, it becomes 12345678.exe. Is there any solution?
|
|
| Floor2 HAT | Posted 2008-08-18 20:50 |
| 版主 Posts 5,017 Credits 9,023 | |
|
The problem that unzip.exe does not exist for GNU for Win32
unzip.exe http://bbs.bathome.cn/attachment.php?aid=223 |
|
| Floor3 sudaibin | Posted 2008-08-18 21:04 |
| 初级用户 Posts 17 Credits 39 | |
|
Are there any relevant command explanations for unzip?
|
|
| Floor4 HAT | Posted 2008-08-18 21:13 |
| 版主 Posts 5,017 Credits 9,023 | |
|
C:\Test>unzip --help
UnZip 5.42 of 14 January 2001, by Info-ZIP. Maintained by C. Spieler. Send bug reports to the authors at Zip-Bugs@lists.wku.edu; see README for details. Usage: unzip ] file Default action is to extract files in list, except those in xlist, to exdir; file may be a wildcard. -Z => ZipInfo mode ("unzip -Z" for usage). -p extract files to pipe, no messages -l list files (short format) -f freshen existing files, create none -t test compressed archive data -u update files, create if necessary -z display archive comment -x exclude files that follow (in xlist) -d extract files into exdir modifiers: -q quiet mode (-qq => quieter) -n never overwrite existing files -a auto-convert any text files -o overwrite files WITHOUT prompting -aa treat ALL files as text -j junk paths (do not make directories) -v be verbose/print version info -C match filenames case-insensitively -L make (some) names lowercase -$ label removables (-$$ => fixed disks) -V retain VMS version numbers -X restore ACLs (-XX => use privileges) -s spaces in filenames => '_' -M pipe through "more" pager Examples (see unzip.txt for more info): unzip data1 -x joe => extract all files except joe from zipfile data1.zip unzip -fo foo ReadMe => quietly replace existing ReadMe if archive file newer |
|
| Floor5 sudaibin | Posted 2008-08-18 22:06 |
| 初级用户 Posts 17 Credits 39 | |
|
Used unzip and can't extract. Please help NAT to see what's wrong?
@echo off for %%a in (c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) do if exist %%a:\ntldr if exist %%a:\windows\explorer.exe set sysdrive=%%a: if #%sysdrive%==# goto startxp inifile %sysdrive%\boot.ini [boot loader] timeout>timeout.bat call timeout.bat del timeout.bat if #%timeout%==# goto startxp if #%timeout%==#33 pause for %%a in (c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) do if exist %%a:\nbmscl~1\fuckdog\fuckdog.zip set fuckdog=%%a:\nbmscl~1\fuckdog if #%fuckdog%==# goto startxp if not exist %fuckdog%\fuckdog.zip goto startxp unzip -d -o %fuckdog%\fuckdog.zip %sysdrive%\ for %%a in (c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) do if exist %%a:\test.txt set test=%%a:\ if #%fuckdog%==# goto startxp if not exist %fuckdog%\e.zip goto startxp unzip -d -o %fuckdog%\e.zip %test% :startxp grub.exe --config-file=find --set-root /xpldr;chainloader /xpldr |
|
| Floor6 sudaibin | Posted 2008-08-18 22:07 |
| 初级用户 Posts 17 Credits 39 | |
|
Unzipping with PKUNZIP is normal. Is there any missing parameter?
|
|
| Floor7 HAT | Posted 2008-08-18 22:16 |
| 版主 Posts 5,017 Credits 9,023 | |
|
Remove the line @echo off
Add a line pause under the unzip command See why it goes wrong |
|
| Floor8 sudaibin | Posted 2008-08-18 22:52 |
| 初级用户 Posts 17 Credits 39 | |
|
a:\>unzip -d -o f:\nbmscl~1\fuckdog\e.zip f:\this program cannot be run in dos mode
This is the prompt: "This program cannot be run in DOS mode"? |
|
| Floor9 HAT | Posted 2008-08-18 23:04 |
| 版主 Posts 5,017 Credits 9,023 | |
|
I don't have a pure DOS environment, so I can't test whether unzip.exe supports pure DOS.
|
|
| Floor10 sudaibin | Posted 2008-08-18 23:09 |
| 初级用户 Posts 17 Credits 39 | |
|
Are there other ways to solve the problem of not being able to decompress long filenames under pure DOS besides using unzip.exe?
|
|
| Floor11 Wengier | Posted 2008-08-18 23:36 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
PKUNZIP can correctly extract files with long file names under pure DOS, but the prerequisite is to use version 2.50 and load DOSLFN.
|
|
| Floor12 lianjiang2004 | Posted 2008-08-19 11:09 |
| 金牌会员 Posts 1,884 Credits 3,946 | |
|
The unzip.exe of GNU for Win32 cannot be used under DOS, which is normal. It clearly says "for win32". Hehe.
|
|
| Floor13 knoppix7 | Posted 2008-08-19 14:53 |
| 银牌会员 Posts 634 Credits 1,287 From cmd.exe | |
|
GNU for Win32
You are still using it under DOS.... Go find GNU For dos |
|
| Floor14 sudaibin | Posted 2008-08-20 00:59 |
| 初级用户 Posts 17 Credits 39 | |
|
Do I need to load DOSLFN first and then load NTFSPro? What are the respective commands to load them? Do I need to load NTFSDOS before loading DOSLFN?
|
|
| Floor15 Wengier | Posted 2008-08-20 02:40 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
Load DOSLFN first, then load NTFSPro, otherwise long filenames on NTFS partitions will not be available.
|
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |