I need to programmatically expand a CAB file (the project is to
automatically convert CAB/INF files to MSI). To do this I’m using
CabArc.exe. When I run CabArc on a CAB via the DOS prompt it works fine.
When I run CabArc programmatically (via a batch file using the Shell command
in VB) I get the following error:
-- Error opening 'filename.ext’ for output FDICopy() failed: code 11 [User
aborted]
NOTE: With some CAB files I don’t get an error – I seem to get errors with
large cab files.
I also tried with Extract.exe and although I got a different error (file
name too long, although I don’t think it was) it still failed
programmatically and succeeded via the DOS prompt.
I would be grateful for any clues as to what might be going on here.
Many thanks
Julia Beresford
=?Utf-8?B?SnVsaWEgQmVyZXNmb3Jk?= <JuliaBe...@discussions.microsoft.com> spake the secret code
<5FFD0AC4-B9D0-46F1...@microsoft.com> thusly:
>My apologies as this is not strictly related to this newsgroup, but some of
>you guys might have had experience using CabArc.exe [...]
I use 'extrac32 /e <cab file>' and it has never failed. When running
from inside your code, check that your current directory is something
meaningful. This is usually what trips you up when you do it from the
command prompt and it works and you do it from code and it fails.
--
"The Direct3D Graphics Pipeline"-- code samples, sample chapter, FAQ:
<http://www.xmission.com/~legalize/book/>
Pilgrimage: Utah's annual demoparty
<http://pilgrimage.scene.org>
Many thanks.