Home > Products > SophiaCompress(Java) > SophiaScale > Command Line Tool

SophiaSCALE How it Works

Form

C:> ScaleCompress {c|d} [-e TargetAttribute]
                [-o Output] [-R] FileOrDirectoryName

Mode { c | d }

Specify whether to compress or decompress the file in the first parameter. Choose "c" for compression or "d" for decompression. This parameter is mandatory.

FileOrDirectoryName

Specify the names of files or directories for compression/decompression. Multiple names may be specified.

When you specify a file name, the file will be targeted.

When you specify a directory name, all the files with special attributes inside the directory will be targeted. The special attributes are "mld" for compression or "sz" for decompression.

This attribute can also be changed with the option "-e".

Options

Option parameters may be specified between the mode {c|d} and the FileOrDirectoryName.

-o

Specify output File or Directory.

Directory

If the location is a directory, the name of the output file is its original file name with an added ".sz" in compression or the file name removed ".sz" in decompression.

File

When the location is a file, the output will retain its original name. In this case, an error will occur if the FileOrDirectoryName is directory name. Moreover, if more than two file names are inputted in FileOrDirectoryName, all the results will be outputted to the last specified file name.

-e

Specify the attributes of targeted files.

Files whose attributes differ from the TargetAttribute will not be targeted. The default value is "mld" for compression or "sz" for decompression.

Please specify "." when all the files in a directory are to be targetted.

-R

Compresses/Decompresses the files in a directory recursively. This option will be ignored if the FileOrDirectoryNameinput is a file.

Example : Compress the File

Compressing One File

e.g. 1

  C:> ScaleCompress c melody.mld

The compressed file "melody.mld.sz" will be generated.

e.g. 2

  C:> ScaleCompress c -o test.xxx test.mld

The compressed file "test.xxx" will be generated.

Compressing All the Files in the Directory

e.g.

  C:> mkdir pressed
  C:> ScaleCompress c -o pressed melody

All files with the attribute "mld" in the "melody" directory will be compressed and will be outputted with the attribute "sz" into the "pressed" directory.