A secure and managed .net component that executes DOS and console commands. DOS is a powerful tool in a programmers arsenal, commandLine makes it easy. To copy a directory and all subdirectories, VB users can simply call :cmd.exec "MKDIR c:\\newdir"cmd.exec "XCOPY c:\\tempdir\\*.* c:\\newdir\\*.* /E /Y"to delete a directory and all subdirectories :cmd.exec "RMDIR c:\\tempdir /S /Q"Each command executes asynchronously and will raise events containing current output, completion status, and ERRORLEVEL. Users can also set timeouts, abort commands, and simulate user input. commandLine is written using managed code only. The caller is required to have all FileIOPermissions security to initialize and use it. Distribution - Deployment projects that contain assemblies which reference commandLine will automatically include the provided merge module. A sample solution is provided which includes both VB and C# projects.
|