UtilRegistryScriptCodeConverterConvertRegToBat(String, Boolean, Boolean, Boolean, CmdCommandRedirection) Method

Converts a Registry Script to a Batch Script.

Definition

Namespace: DevCase.Core.Diagnostics.CodeConversion
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string ConvertRegToBat(
	string registryFilepath,
	bool abbreviateRootKeys = true,
	bool ignoreStartingKeys = true,
	bool forceRegistryOverwritting = true,
	CmdCommandRedirection commandRedirection = CmdCommandRedirection.None
)

Parameters

registryFilepath  String
The registry file to convert.
abbreviateRootKeys  Boolean  (Optional)
If set to , the root keys will be abbreviated.

Example: HKEY_CLASSES_ROOT -> HKCR

ignoreStartingKeys  Boolean  (Optional)
If set to , starting keys to add into the registry will not be converted.

Example: [HKEY_CLASSES_ROOT\.ext] -> REG ADD "HKEY_CLASSES_ROOT\.ext"

forceRegistryOverwritting  Boolean  (Optional)
If set to , REG commands are forced to overwrite the registry.
commandRedirection  CmdCommandRedirection  (Optional)
Indicates whether the standard/error output of the converted Batch REG commands should be redirected to in CMD.

This value can be a combination of one or more Flags.

Return Value

String
The resulting Batch-Script content.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also