However, the commonly used command is ajaxmin-a-h inputfile. js-O outputfile. js (this is a high compression mode)
You can alsoCodeThe analysis command is ajaxmin inputfile. js-a-W: 3.
For more instructions, see help.
Ajaxmin.exe download the Microsoft Ajax Library (sixth preview version)
When ajaxmin compresses multiple files:
Ajaxmin-inputfile_1-inputfile_2-o-oututfile/EO: UTF-8/EI: UTF-8
Where
/EO: UTF-8/EI: UTF-8 indicates the input/output format. If not specified, the default ASCII code is used.
During the simple period, the younger brother wroteProgramRun the ajaxmin program:
The Code is as follows:
Copy code The Code is as follows: public void executecommond (list <string> inputfilelis, string OUTFILE)
{
For (INT I = 0; I <inputfilelist. Count; I ++)
{
Compresscode + = inputfilelist [I] + "";
}
Compresscode + = "-o" + OUTFILE + "/EO: UTF-8/EI: UTF-8 ";
System. Diagnostics. PROCESS p = new system. Diagnostics. Process ();
P. startinfo. filename = @ "C: \ Program Files \ Microsoft \ microsoft Ajax minifier \ ajaxmin.exe"; // name of the program to be started
P. startinfo. Arguments = compresscode; // the startup parameter.
P. Start (); // start
}
This is faster than manually entering commands.