All-In-One Protector

Automated USB flash drive duplication

Hide Navigation Pane

Automated USB flash drive duplication

Previous topic Next topic No directory for this topic  

Automated USB flash drive duplication

Previous topic Next topic Topic directory requires JavaScript JavaScript is required for the print function Mail us feedback on this topic!  

If hundreds of protected USB flash drives have to be produced, an automated process is required. The Enterprise Edition comes with a tool, which supports an automated process.

 

The tool can be found on the folder ..\All-In-One Protector Premium Plus \4.0\USB flash drive duplication

 

This application has no user interface. The main purpose is to activate the copy protection on the USB flash drive without any user interaction.

 

The simplest way to use the application cpautomation.exe is to use a .BAT file.  If you start the application without any command line parameters, you get a list of all available command line parameters.

 

Command Line Parameters

As the application has no user interface, it needs command line parameters. The values in red are required values

 

 

Parameter

Explanation

Example

-p

Project file name in xml format which includes the encryption and other information about the project

-p flash-demo.xml

-f

License file name on the USB flash drive

-f  m:flash-demo.lic

-n

Limit number of PC's (or users). 0 uses the value defined as number of network licenses . Details see: Limit Usage

-n 5   (this would limit to use the USB flash drive on 5 PC's or for 5 users (depending on the definition)

-c

Copy Protection Type - the default value is 11 = USB flash drive

not necessary

-m

Module ID of the application. Not required and reserved for future use

not necessary

 

 

Setup for automated duplication

Create a new folder and copy the following files into this folder.

 

all files from the folder Publish USB (e.g. autorun.info, flash-demo.lic, flash-demo.exe, flash-demo.mmf)

the XML file from the folder Config (e.g. flash-demo.xml)

 

 

If an external company is doing the USB flash drive duplication using this application, send them this folder. They would have to buy the Enterprise Edition.

 

Now copy all the files from the folder ..\All-In-One Protector Premium Plus\4.0\USB flash drive duplication to this folder

 

cpautomation4.0.exe

cpautomation.lic

cpautomation.bat

 

Batch Process

The file cpautomation.bat defines the process. Normally this is:

 

Copy the files to the USB flash drive

Activate copy protection for the USB flash drive

 

You can modify this bat file and adapt it to your USB flash drive duplication facility.

 

If you are familiar with batch files, use example 2, otherwise edit the file cpautomation.bat and modify it like example 1.

 

Example 1

copy autorun.info m:

copy flash-demo.lic m:

copy flash-demo.exe m:

copy flash-demo.mmf m:

cpautomation4.0.exe -p flash-demo.xml -f m:\flash-demo.lic -n 5

 

You could also start the cpautomation.bat using command line parameters. Then you do not have to change the bat file for every project.

 

cpautomation.exe flash-demo m: 5     (project name, drive name of the USB flash drive, number of licenses)

 

Example 2

copy autorun.info %1

copy %1.lic %2

copy %1.exe %2

copy %1.mmf %2

cpautomation4.0.exe -p %1.xml -f %2\%1.lic -n %3

 

 

Useful commands for batch files

To delete all files within a folder:   ECHO Y | DEL   "m:\*.*"

To delete a specific folder: ECHO Y | RMDIR  /s  "foldername"

Stop the batch script to check results: PAUSE

 

This feature is available only in the All-In-One Protector Enterprise Edition.