Expand.exe Hangs while decompressing CAB file

B

bcumminsr

I am attempting to decompress a CAB file within a batch file using
Expand.exe (need to automate therefore using batch). There are two
files in my CAB file... one file is an .MDF file approximately 2.1 gb
in size. The second file is a .LDF (log file). When executing the
batch file the Expand.exe hangs when writing the MDF file at 34,752 kb
and appears to stop writing to this file. Is this a DOS file size
limitation issue? Below are the commands used to create the CAB file
and the command calling the expand.exe.

At CMD prompt: cabarc N MyCab.cab train_db.mdf train_log.ldf

Statement in batch file: expand "C:\MyCab.cab" "-F:*.*" "C:\"
*hangs after writing 34,752 kb of the MDF file.

Thanks in advance.
 
R

Robert Moir

I am attempting to decompress a CAB file within a batch file using
Expand.exe (need to automate therefore using batch). There are two
files in my CAB file... one file is an .MDF file approximately 2.1 gb
in size. The second file is a .LDF (log file). When executing the
batch file the Expand.exe hangs when writing the MDF file at 34,752 kb
and appears to stop writing to this file. Is this a DOS file size
limitation issue? Below are the commands used to create the CAB file
and the command calling the expand.exe.

At CMD prompt: cabarc N MyCab.cab train_db.mdf train_log.ldf

Statement in batch file: expand "C:\MyCab.cab" "-F:*.*" "C:\"
*hangs after writing 34,752 kb of the MDF file.

If the disk being written to is a FAT format disk this is entirely possible.
FAT16 has a limit of 2GB for an individual file, I believe.
 
B

bcumminsr

Disk is NTFS. Thanks

Robert said:
If the disk being written to is a FAT format disk this is entirely possible.
FAT16 has a limit of 2GB for an individual file, I believe.
 
D

Detlev Dreyer

I am attempting to decompress a CAB file within a batch file using
Expand.exe (need to automate therefore using batch). There are two
files in my CAB file... one file is an .MDF file approximately 2.1 gb
in size. The second file is a .LDF (log file). When executing the
batch file the Expand.exe hangs when writing the MDF file at 34,752 kb
and appears to stop writing to this file.

Expand the CAB file using the built-in Windows function (doubleclick) in
order to find out if that file is damaged.
Statement in batch file: expand "C:\MyCab.cab" "-F:*.*" "C:\"

First, there is no need for using quotes. Second, "Expand.exe" is not
really suitable for expanding .CAB files. That tool is meant for file
cabinets being created with the "Compress.exe" tool.
*hangs after writing 34,752 kb of the MDF file.

Why don't you use "Extract.exe", part of the "Support Tools" on your
WinXP CD.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top