Home > Archive > Compression > May 2005 > Tricky problem with compress.exe, please HELP!!!
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Tricky problem with compress.exe, please HELP!!!
|
|
| [FW Paperinik.pk] 2005-05-19, 3:55 pm |
| Hi, I want to compress several files (~3000) with the compress.exe from
mircosoft.
I need to compress them with that specific compressor because I must
decompress them with the expand.exe (from microsoft too).
I google it and found an old version of compress.exe which works fine BUT
doesn't support long filenames...so I get all the filenames truncated and
ending like filena~1.ex_
Moreover all of the compressed files are in capitals.
Can you help me to find a version of compress.exe (or something newer but
similar) which supports long filenames?
(the capital problem is less important...)
Thank you all.
-pk
| |
| Matt Mahoney 2005-05-19, 3:55 pm |
|
[FW Paperinik.pk] wrote:
> Hi, I want to compress several files (~3000) with the compress.exe
from
> mircosoft.
> I need to compress them with that specific compressor because I must
> decompress them with the expand.exe (from microsoft too).
> I google it and found an old version of compress.exe which works fine
BUT
> doesn't support long filenames...so I get all the filenames truncated
and
> ending like filena~1.ex_
> Moreover all of the compressed files are in capitals.
>
> Can you help me to find a version of compress.exe (or something newer
but
> similar) which supports long filenames?
> (the capital problem is less important...)
>
> Thank you all.
>
> -pk
Get a newer compressor like zip or rar or 7zip that works with long
file names (something that was written since 1995).
-- Matt Mahoney
| |
| Claudio Grondi 2005-05-19, 3:55 pm |
| What I suggest is not what you have asked for, but
maybe you can use following workaround to solve
your problem:
checkout:
http://www.cs.uu.nl/wais/html/na-di...-faq/part1.html
linking to:
ftp://ftp.microsoft.com/softlib/mslfiles/CP0982.EXE
(which provides COMPRESS.EXE from March 1992)
then create a DOS-batch file myCompressExpandTest.bat as follows:
REM compression part:
copy "file with long name" myFile01.ext
compress.exe -r myFile01.ext
del myFile01.ext
REM ==================================
REM expanding part:
expand.exe myFile01.ex_ myFile01.ext
REM del myFile01.ex_
ren myFile01.ext "file with long name after expand"
This way you keep using only standard DOS
mechanisms available in each Microsoft
Windows system.
Name your files myF00001.ext, myF00002.ext
etc., so that you can expand them all correctly
afterwards (this naming supports up to 99999
files).
Claudio
> Hi, I want to compress several files (~3000) with the compress.exe from
> mircosoft.
> I need to compress them with that specific compressor because I must
> decompress them with the expand.exe (from microsoft too).
> I google it and found an old version of compress.exe which works fine BUT
> doesn't support long filenames...so I get all the filenames truncated and
> ending like filena~1.ex_
> Moreover all of the compressed files are in capitals.
>
> Can you help me to find a version of compress.exe (or something newer but
> similar) which supports long filenames?
> (the capital problem is less important...)
>
> Thank you all.
>
> -pk
>
>
| |
| Willem 2005-05-19, 8:55 pm |
| ) [FW Paperinik.pk] wrote:
) <snip>
)> I need to compress them with that specific compressor because I must
)> decompress them with the expand.exe (from microsoft too).
) <snip>
Matt wrote:
) Get a newer compressor like zip or rar or 7zip that works with long
) file names (something that was written since 1995).
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
| |
| Chris Giese 2005-05-20, 3:55 am |
| "[FW Paperinik.pk]" <paperinik.pk[nonscriverequesto]@fastwebnet.it> wrote:
>Hi, I want to compress several files (~3000) with the compress.exe from
>mircosoft.
>I need to compress them with that specific compressor because I must
>decompress them with the expand.exe (from microsoft too).
>I google it and found an old version of compress.exe which works fine BUT
>doesn't support long filenames...so I get all the filenames truncated and
>ending like filena~1.ex_
>Moreover all of the compressed files are in capitals.
The LZSS code written by Haruhiko Okumura can be made compatible with
Microsoft COMPRESS/EXPAND by changing the value of 'F' in the source
code, as I've done:
http://my.execpc.com/~geezer/software/lzss.zip
If nothing else, you can make a COMPRESS/EXPAND that supports long
filenames by compiling this code with a suitable compiler.
| |
| [FW Paperinik.pk] 2005-05-22, 8:55 am |
| OK, thanks to all of you...I'll try and I'll let you know...
-pk
"Chris Giese" <NoEmailAds@execpc.com> wrote in message
news:428d3023.1755729@news.voyager.net...
> "[FW Paperinik.pk]" <paperinik.pk[nonscriverequesto]@fastwebnet.it> wrote:
>
>
> The LZSS code written by Haruhiko Okumura can be made compatible with
> Microsoft COMPRESS/EXPAND by changing the value of 'F' in the source
> code, as I've done:
> http://my.execpc.com/~geezer/software/lzss.zip
>
> If nothing else, you can make a COMPRESS/EXPAND that supports long
> filenames by compiling this code with a suitable compiler.
>
|
|
|
|
|