DataPipe can be run from a DOS shell or from a shortcut with parameters to make it run automatically. This is very useful for
automation and scheduling (by making the short cut an entry in the Start Up folder),
and for running DataPipe from a batch file for different databases and tables.
Here is a complete example:
| /COLUMN:<column
name>=<TextPipe Pro filter name> |
Specifies which TextPipe filter should be
applied to which column e.g. /DATASOURCE=...
/QUERY= or /TABLE=
/COLUMN:col1=filter1
/COLUMN:col2=filter2
... The TextPipe filter name is allowed to be blank - this clears a column
with an existing value. |
| /DATASOURCE=<data
source string> |
The data source connection string of the
database to connect to e.g.
/DATASOURCE=...
/QUERY= or /TABLE=
/COLUMN:col1=filter1
/COLUMN:col2=filter2
... |
| /F=<.dpp filename> |
Open DataPipe settings file. This can be used
to set parameters that can't be set via the command line, such as
restart options and cursor options. |
| /G |
Go. Begin processing. Processing of the command
line does not continue until the processing job is complete. |
| /LOG=filename |
Enables logging to the specified file. To
disable logging, set the filename to blank. |
| /Q |
Quit DataPipe at the end of processing. |
| /QUERY=<query string> |
The database query string to get records from
e.g. /DATASOURCE=...
/QUERY=query
/COLUMN:col1=filter1
/COLUMN:col2=filter2
... |
| /TABLE=<table> |
The database table to get records from e.g. /DATASOURCE=...
/TABLE=tablename
/COLUMN:col1=filter1
/COLUMN:col2=filter2
... |
/Z=<filename>
|
Read command line parameters from the specified file. Very
useful for performing large amounts of changes to many tables, or for working around the Windows
limitation of approx 260 characters on the command line.
For example, if you had the long command line
start /w datapipe.exe "/f=my special filter.fll" /g
"/f=my special filter2.fll" /g "/f=my special
filter3.fll" /g "/f=my special filter4.fll" /g /q
This would change to something like
start /w datapipe.exe /z=commands.txt
and the file commands.txt would contain
/f=my special filter.fll
/g
/f=my special filter2.fll
/g
/f=my special filter3.fll
/g
/f=my special filter4.fll
/g
/q
|