Click or drag to resize

CommandLine Class

This static class provides a number of methods to deal with command line arguments.
Inheritance Hierarchy
SystemObject
  Mastersign.BenchCommandLine

Namespace:  Mastersign.Bench
Assembly:  BenchLib (in BenchLib.dll) Version: 0.22.0.0 (0.22.0.0)
Syntax
public static class CommandLine

The CommandLine type exposes the following members.

Methods
  NameDescription
Public methodStatic memberEscapeArgument
Escapes an argument string for the Windows CMD interpreter. If the string contains special cahracters or white space, it is quoted.
Public methodStatic memberFormatArgumentList

Creates a string with mutlitple command line arguments, compatible with the Windows CMD interpreter.

All characters of the given strings are preserved and if necessary escaped.

Public methodStatic memberCode exampleSubstituteArgument
Given a string, containing batch style placeholders for environment variables and numbered parameters, the placeholders are replaced by the referred parameter values.
Public methodStatic memberCode exampleSubstituteArgumentList
Given an array of strings, containing batch style placeholders for environment variables and numbered parameters, the placeholders are replaced by the referred parameter values.
Top
See Also