This topic describes parameters of Database Tour command line, specific to encrypting or decrypting files.
Common rules for writing command lines are described here.
Before you start...
Advanced users can build the needed command line manually using the specification below. But if you are a beginner or just need to create a command line for simple operation, you can save your time using Database Tour command line builder. To generate a command line, choose 'Tools | Build Command Line | Encrypt a File...' or 'Tools | Build Command Line | Decrypt a File...' menu. In 'Build Command Line' window, specify needed options and click OK. A new window will appear with the command line generated. Copy it, correct it if it is needed, and use in Database Tour calls from your own applications, .bat files etc.
Usage
Classic command line format.
The command line consists of all needed switches and parameters:
dbtour.exe /Parameter1 /Parameter2 /... /ParameterN
Short format.
This format is more flexible as it allows you to keep all command line parameters in a separate action file. The command line consists of the /ParamsFile parameter (which points to the action file path) and an optional /silent parameter:
dbtour.exe [/silent] /ActionFile=ActionFileName
Command line options and their descriptions
</encrypt> | </decrypt>
[/silent]
[/ActionFile=Value]
[/SrcFile=Value]
[/TrgFile=Value]
[/Password=Value]
[/CloseWhenDone]
[/CloseOnError]
[/minimize]
Examples
1. Encrypt a file
dbtour.exe /encrypt /CloseWhenDone "/SrcFile=c:\my db\customer.dbf" "/TrgFile=c:\my db copy\customer.enc" "/password=MyPass"
2. Decrypt a file
dbtour.exe /silent /decrypt "/SrcFile=c:\my db copy\customer.enc" "/TrgFile=c:\my db copy\customer.dbf" "/password=MyPass"
3. The same as the previous one but using an action file
dbtour.exe /silent "/ActionFile=c:\DBTourStartParameters.txt"
The contents of c:\DBTourStartParameters.txt file should be like the following:
;action
/decrypt
;options
/password=MyPass
;source definition
/SrcFile=c:\my db copy\customer.enc
;target definition
/TrgFile=c:\my db copy\customer.dbf