PDA

View Full Version : Windows Command Line Library


sside
08-19-2006, 11:49 AM
Hi there folks

Saw few threads here about command line and decided to make my own contribution.

Windows Command Line Library (WinCmd.dll) will redirect the input, output, error output at your application. Or with other words you can run commands from your application and get the response too (error response as well).

For example, if you run the netstat command in command prompt you will get the response in you application.

WinCmdStart // Start.
WinCmdInput // Input the command.
WinCmdOutput // Get the response.
WinCmdError // Get error response.
GetError // Get any error may occur. This will not catch the error output.

To run a command WinCmdStart and WinCmdInput are required, the rest is optional if you're not interested in output.

Here (http://ams5.ssideproject.com/downloads/WinCmd.v.1.0.0.1.apz) you can download ams5 project.
Here (http://applications.ssideproject.com/downloads/WinCmd.v.1.0.0.1.zip) you can download the compressed exe to see what it does.

A few commands: netstat, ipconfig, systeminfo.

For a list of command lines visit this page. (http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true)

.NET 2.0 required.

With Kind Regards

sside