China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-02 18:26
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » PKUNZIP cannot correctly decompress files with long filenames View 2,410 Replies 16
Original Poster Posted 2008-08-18 20:45 ·  中国 浙江 温州 电信
初级用户
Credits 39
Posts 17
Joined 2008-06-05 03:42
18-year member
UID 120516
Gender Male
Status Offline
For example, there is a file named 123456789.exe in a zip, and when decompressed, it becomes 12345678.exe. Is there any solution?
Floor 2 Posted 2008-08-18 20:50 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
The problem that unzip.exe does not exist for GNU for Win32

unzip.exe

http://bbs.bathome.cn/attachment.php?aid=223
Floor 3 Posted 2008-08-18 21:04 ·  中国 浙江 温州 电信
初级用户
Credits 39
Posts 17
Joined 2008-06-05 03:42
18-year member
UID 120516
Gender Male
Status Offline
Are there any relevant command explanations for unzip?
Floor 4 Posted 2008-08-18 21:13 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
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
Floor 5 Posted 2008-08-18 22:06 ·  中国 浙江 温州 电信
初级用户
Credits 39
Posts 17
Joined 2008-06-05 03:42
18-year member
UID 120516
Gender Male
Status Offline
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
Floor 6 Posted 2008-08-18 22:07 ·  中国 浙江 温州 电信
初级用户
Credits 39
Posts 17
Joined 2008-06-05 03:42
18-year member
UID 120516
Gender Male
Status Offline
Unzipping with PKUNZIP is normal. Is there any missing parameter?
Floor 7 Posted 2008-08-18 22:16 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Remove the line @echo off
Add a line pause under the unzip command
See why it goes wrong
Floor 8 Posted 2008-08-18 22:52 ·  中国 浙江 温州 电信
初级用户
Credits 39
Posts 17
Joined 2008-06-05 03:42
18-year member
UID 120516
Gender Male
Status Offline
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"?
Floor 9 Posted 2008-08-18 23:04 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
I don't have a pure DOS environment, so I can't test whether unzip.exe supports pure DOS.
Floor 10 Posted 2008-08-18 23:09 ·  中国 浙江 温州 电信
初级用户
Credits 39
Posts 17
Joined 2008-06-05 03:42
18-year member
UID 120516
Gender Male
Status Offline
Are there other ways to solve the problem of not being able to decompress long filenames under pure DOS besides using unzip.exe?
Floor 11 Posted 2008-08-18 23:36 ·  加拿大 Primus
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
PKUNZIP can correctly extract files with long file names under pure DOS, but the prerequisite is to use version 2.50 and load DOSLFN.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 12 Posted 2008-08-19 11:09 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
The unzip.exe of GNU for Win32 cannot be used under DOS, which is normal. It clearly says "for win32". Hehe.
Windows 一键还原
http://www.yjhy.com
Floor 13 Posted 2008-08-19 14:53 ·  中国 北京 丰台区 联通
银牌会员
★★★
Credits 1,287
Posts 634
Joined 2007-05-02 15:06
19-year member
UID 87277
Gender Male
From cmd.exe
Status Offline
GNU for Win32
You are still using it under DOS....
Go find GNU For dos
Floor 14 Posted 2008-08-20 00:59 ·  中国 浙江 温州 电信
初级用户
Credits 39
Posts 17
Joined 2008-06-05 03:42
18-year member
UID 120516
Gender Male
Status Offline
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?
Floor 15 Posted 2008-08-20 02:40 ·  加拿大 Primus
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Load DOSLFN first, then load NTFSPro, otherwise long filenames on NTFS partitions will not be available.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Forum Jump: