FAQ | Products | Price list | Contact Touch22 | Support
Autorun 22
Command 22
Image 22
Contact us
Our customers
  Command22 ActiveX
Modified: 7/15/2012 1:15:12 AM.
Size: 646656 bytes.
Installation Requirements:
MS Windows 98/Me/NT/2000/XP;
MS Internet Explorer 4.0 or higher.
Installation: cmd22.msi
more about MSI installation file

All COM objects included into the Command22 package are used for running the console application or MS DOS commands from inside your application without bringing up the command prompt (MS DOS) window and providing your application with methods to control the child process input and output.
Command22 COM objects work with Visual Basic, Visual C++ and other (D)COM/ActiveX/Win 32 compatible development environments.
Command22 enables your application to run MS-DOS command, batch file or console application. If you run console application, that reads its input from the standard input (stdin) or writes its results to the standard output (stdout), you can redirect its input and output to and from the your "parent" application. You can control "child process" input and output.
Use Command22 if you like to run DOS or console program from inside your application, and this DOS program waits for input from stdin and returns strings to stdout. You can automate this process using methods and properties providing by Command22.
Note: Before running DOS commands, you should launch cmd.exe (command.com for Win98) .
Another situation when the Command22 functionality may be very helpful is the case when you try to launch a command from your installation scripts (a good example may be a net start or net stop command).
Command22 program contains 3 executables: CMD22.DLL, SCMD22.DLL and DCMD22.DLL . WARNING: Since CMD22, SCMD22, DCMD22 may run any console applications (including del or format), the unsecured Command22 usage may cause serious problems on your system.
FAQ: Why to use Command22 instead of calling ShellExecute?
  • CMD22.DLL - Size: 352 KB. This ActiveX control contains UI and intended for using in C,C++,Visual BASIC applications.
    The screenshot below shows the output of some DOS commands, executed through Windows 98 command.com launched with CMD22.DLL:
  • SCMD22.DLL and DCMD22.DLL
  • SCMD22.DLL - Size: 140 KB. This COM object intended for using in java scripts, VB scripts and may be embedded into WEB page.
    (this object is not marked as safe for scripting).
    The screenshot below shows the output of the ping application, launched
    with SCMD22.DLL (ping
  • DCMD22.DLL - Size: 132 KB. Dinamic link library providing the same functionality as SCMD22 and particularly useful in InstallShield scripts.
  • Command22 samples
    Command22 package includes C++ and JavaScript examples using CMD22, SCMD22, DCMD22 components.
    This sample is available on our server:
    Download Visual Basic sample
    Command22 Registration
    If you purchased commercial version of Command22 you must register it.Once the program is registered, it immediately becomes fully functional. For registering Command22 please do the following:
    • Select from program menu Touch22-Command22-Register it.
    • Fill all necessary fields and press OK.
    Copyright 2001-2012 Touch22 .  All Rights Reserved.