Where can I get the cabarc utility? - download

I'm trying to compile a program which uses cabarc.exe, but I don't have cabarc.exe. The problem is that the Microsoft Cabinet SDK is no longer available so I can't get it from there either.
Where can I get this file?
P.S. I'm looking for a download from a trusted source such as microsoft.com

It appears that the cabarc.exe utility has been replaced with makecab.exe, which comes with Windows [source].
It should be located in:
C:\WINDOWS\system32
The cabarc documentation can be found here.
The makecab documentation can be found here.

cabarc.exe is available as a part of the Windows XP Service Pack 2 Support Tools.
You can extract only this utility using commands like these (if you don't run XP):
WindowsXP-KB838079-SupportTools-ENU.exe /C /T:%TEMP%
extract /E %TEMP%\support.cab cabarc.exe

You can download the CabSDK from here:
Download the Microsoft Cabinet SDK version 4.71.410.0

In Windows 7 (and possibly Vista) instead of extract you use expand. The syntax is slightly different, but see below for the one that worked for me. Replace %TEMP% in the second command with wherever you want the cabarc.exe file to end up.
WindowsXP-KB838079-SupportTools-ENU.exe /C /T:%TEMP%
expand %TEMP%\support.cab -F:cabarc.exe %TEMP%

You can find cabarc.exe in the Internet Explorer Administration Kit.
Strangely though, IEAK 11 has cabarc.exe version 5.0.2147.1, while IEAK 10 has version 6.2.9200.16521.

For Windows 8 and Windows 8.1 use the Windows ADK
Download and install the Windows ADK from this website.
for the expand.exe command refer to
http://technet.microsoft.com/en-us/library/hh825253.aspx
The destination directory has to exist before executing the expand command. For example:
expand Dell-WinPE-Drivers-A02.CAB Dell-WinPE-Drivers-A02 -f:*

Related

Can't build with mozilla-apk-cli without zip/unzip

I'm trying to build a packaged open web app with mozilla-apk-cli. But when I try it tells me I need to install unzip and zip from Info-zip. But the Info-zip site is beyond dated and the .msi I ran from there doesn't appear to have done anything.
I'm on Windows 8.1 64bit.
How am I expected to do this?
Until #Ozten fixes this, you might want to just get some binaries somewhere else, like gnuwin32 (zip, unzip) and put then somewhere in your PATH.
I'm the author of mozilla-apk-cli. I don't develop on Windows, so I need your help!
1) I'll do some digging, I assumed (wrongly) that Info-zip would install on Windows 8.1 64-bit
2) What is the preferred tool for zip/unzip from the command line on Windows 8.1? Can you point me at it's documentation?
Thanks for your help in improving mozilla-apk-cli.
Also: I've filed https://github.com/mozilla/apk-cli/issues/3
Update: I've documented how to install Info-ZIP. Thanks to Myk and nmaier.
I've tested this fix on Windows 8.1 and was able to build an APK.

zip/compression command under Windows environment for COBOL program

I need to issue a zip/compression command from a COBOL program running on Windows platform, is there any built-in Windows specific command line command to zip the list of specified files, I cannot rely on 3rd party zip tools like winzip or 7zip.
I have tried compact command, is there any other alternatives to achieve this? please suggest.
Use zip.exe and unzip.exe available from http://www.info-zip.org/. The windows binaries can be downloaded directly from http://sourceforge.net/projects/infozip/files/.

VB6 Legacy Code can't "Call Shell"

I am working on some legacy VB6 code and I am having my program break with this message:
and it then highlights this code:
I know that the specified locations exist per these screenshots:
I am running this Visual Studio 6.0 on a 64-bit Windows 7 machine. How can I make the program see shell?
command.com does not exist on 64 bit windows.
Try using C:\Windows\SysWOW64\cmd.exe instead. C:\Windows\SysWOW64 is a folder giving you backwards compatibility stuff for 32 bit.
But see the comment below (taken from Euro Micelli).
Really you should use %SYSTEMROOT\System32\cmd.exe instead. First, Windows is not always installed in C:\Windows; you should let the system figure that out. Second, using System32 is always correct for a 32-bit application: when running on Win32, it is the correct folder; when running on Win64, Windows will map %SYSTEMROOT%\System32 to %SYSTEMROOT%\SysWOW64
I use vb6 and windows 7.
I've done the same thing as you but I put the dos command in a bat file.
Login.bat
NET USE W: \\10.48.10.8\e$
Then in the code
Shell ("c:\login.bat")
The vb command is not correct for the OS that you are running. You need to check that that drive is not already mapped, and remove the command.com /c from the command that you are trying to execute.

Dumpbin warning LNK4195: unable to load msdis170.dll

I'm trying to use dumpbin with the /DISASM option to dump the disassembly of a file.
It gives me the error LINK : warning LNK4195: unable to load msdis170.dll.
Apparently the file msdis170.dll doesn't exist on my computer.
I've tried reinstalling the Windows SDK and that didn't work.
So, how do I get this file?
I'm using Windows 7 Home Premium 64 bit, with the latest version of the Windows SDK.
Look like you are missing msdis170.dll from your PATH. Look for it on your drive and add the directory it resides in to your PATH.
set PATH=%PATH%;<directory_where_DLL_resides>
dumpbin /disasm <file_to_disassemble>
UPDATE:
What version of the SDK do you have? You said latest, but what version? I know that WinSDK 7.0/7.1 comes with msdis160.dll. Where did you get your version of dumpbin.exe?
Problem solved by install Visual C++ Express Edition.
(posted as an answer on behalf of asker)

How to make tasklist.exe run on windows 2000

Can someone please tell me how to make tasklist.exe file run on Windows 2000. I downloaded the file from net & placed under the system32 folder. However when I tried to execute the file it prompted me a message "ERROR:the target system must be running Windows XP or above"
So can someone please tell me how to run this on windows 2000? I badly need this, as I am doing a batch script to find out the foreground processes running in my windows 2000 machine.
Appreciate your help.
I looked but couldn't find a version for Windows 2000. But I did find this article on using an alternative program.
The original tasklist.exe will not work in stock Windows 2000 because it's looking for APIs which don't exist there. You can use a modified version created blackwingcat:
http://blog.livedoor.jp/blackwingcat/archives/1372175.html
Just download and unpack taskcmds.cab.

Resources