Dotfuscator User's Guide
Command Line Quick Start

This section demonstrates how to use the command line interface to obfuscate using the same settings as in the Standalone GUI Quick Start.  For a complete guide to Dotfuscator's command line, see Command Line Interface Reference.

You can start Dotfuscator from the command line using the following syntax:

Command Line Quick Start
Copy Code
dotfuscator [options] [configfile]

The command line options are documented in the Command Line Options Summary.  The configuration file is an XML document that specifies various options for Dotfuscator. When you ran the standalone GUI and filled in the various dialogs, you were populating a configuration file. All elements of the configuration file are documented in the Configuration File Reference.

Using Existing Configurations

You can feed previously created configuration files into the command line tool. For example, using the configuration file that you created in the last section, you can obfuscate from the command line using this command:

Using Existing Configurations
Copy Code
dotfuscator Dotfuscator.xml

Using Command Line Switches Only

Alternatively, you can obfuscate on the command line without a configuration file because most of the configuration options are available as command line switches. To get powerful obfuscation for our example assembly, all you need to do is specify your input assembly.

Using Command Line Switches Only
Copy Code
dotfuscator /in:GettingStarted.exe

Using Advanced Command Line Switches

If you want to run the obfuscator from the command line with the same options that you set in the standalone GUI in the previous section, you need a command like this:

Using Advanced Command Line Switches
Copy Code
dotfuscator /in:GettingStarted.exe /debug:on /v /enha:on
See Also

Getting Started

Command Line Interface Reference

Configuration File Reference

 

 


© 2016 PreEmptive Solutions, LLC. All Rights Reserved.

www.preemptive.com