ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Tools / WDConver
  • Overview
  • Command Line mode
  • Examples
  • Usage example of a script:
  • Use example
  • Example for converting a single file
  • Example of conversion via a Native Connector (or Native Access)
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
WDConver : Use in command line mode
HFSQL ClassicAvailable only with this kind of connection
Overview

Command Line mode

Using WDConver in command line mode consists in running a conversion description created and saved with WDConver (".WDV" file).
The following syntax is used to start WDConver in command line:
WDConver.EXE [-report][-error][-wizard]/SCRIPT=<WDVFile>
Details of parameters:
ParametersMeaning
[-report]If this parameter is specified, a status report will be displayed at the end of the script execution.
By default, if this parameter is not specified, no status report will be displayed at the end of the script execution.
[-error]If this parameter is specified, an error message will be displayed at the end of the script execution.
By default, if this parameter is not specified, no error message will be displayed at the end of the script execution.
[-wizard]If this parameter is specified, the wizard for data conversion will be started.
By default, if this parameter is not specified, the wizard for data conversion will not be started.
/SCRIPT=<WDVFile>Character string containing the name and full path of the description de conversion to use (".WDV" file).
This parameter is mandatory except if the "-wizard" parameter is specified.
/WDD=<Analysis path>Character string containing the path of the WINDEV, WEBDEV or WINDEV Mobile analysis. This path must be enclosed in quotes if it contains space characters.
/PWD=<Unencrypted password of the analysis>Character string containing the password of the WINDEV, WEBDEV or WINDEV Mobile analysis. This password must be enclosed quotes if it contains space characters.
/WDD55=<Path of WINDEV 5.5 analysis>Character string containing the path of the WINDEV 5.5 analysis. This path must be enclosed in quotes if it contains space characters.
/PWD55=<Unencrypted password of WINDEV 5.5 analysis>Character string containing the password of the WINDEV 5.5 analysis. This password must be enclosed quotes if it contains space characters.
/SRCDIR=<Directory of sought Hyper File 5.5 data files>Character string containing the path of the Hyper File 5.5 data files to convert.
/DSTDIR=<Directory of converted data files>Character string containing the directory where the data files converted to HFSQL Classic will be created
/FILE=<Source data file>Character string containing:
  • the path of the Hyper File 5.5 data file to convert
  • the name of the table to convert on the server.
/NAME=<Logical name in the WINDEV 5.5 analysis of the file to convert>Character string corresponding to the logical name of the data file to convert in the WINDEV, WEBDEV or WINDEV Mobile analysis.
/FILEPWD55=<Unencrypted password of source file>Character string corresponding to the password of the WINDEV 5.5 file to convert.
/FILEDST=<Destination path of converted file>Character string corresponding to the path of the converted file
/NOREPUsed to ignore the .REP file in WINDEV 5.5 format.
/MODE=[HF5 | EXTERN | XML | TEXT] Type of source filesDefines the format of the files to import:
  • HF5: Hyper File 5.5 data files
  • EXTERN: external files/tables (example: C/S database)
  • XML: XML files
  • TEXT: text files
/PROVIDER=<OLEDB provider or Native Connector>Character string that defines the provider or the Native Connector (also known as Native Access) used to access the data to convert.
For the Native Connectors, use the following character strings: WinDevOracle, WinDevSQLServer, WinDevInformix, etc.
/DATASOURCE=<Name of the source (file or server)>Character string. This parameter is used when converting a file via a Native Connector or an OLE DB provider, ...
Corresponds to the name of the data source.
/USER=<Username>Character string. Corresponds to the name of the user of the data source.
/USERPWD=<Unencrypted user password>Character string. Corresponds to the password of the user of the data source.
/DATABASE=<Database name>Character string. Corresponds to the accessed database (if several ones are found on the server).
Remark: The above table presents the different parameters that can be used to start WDConver in command line mode. To get these parameters when starting WDConver, use one of the following syntaxes:
  • WDConver.EXE /help
  • WDConver.EXE /?
Remark: The scripts created with an earlier version of WINDEV 7 cannot be used with WDConver version 8 and later. The scripts created with WINDEV 7.5 can be used with WDConver version 8 and later.
Examples

Usage example of a script:

The following command line is used to run the conversion description named "C:\MyDirectory\MyDescription.WDV". If an error occurs, a message is displayed at the end of the automatic modification of the data files ("-error" parameter). The wizard for automatic modification of the data files will not be started.
ExeRun("C:\MyTools\WDConver.EXE " +...
"-error/SCRIPT=C:\MyDirectory\MyDescription.WDV")

Use example

The following command line is used to:
  • Select all the Hyper File 5 files accessible by the ".REP" file and in the "C:\data" directory.
  • Convert these files to HFSQL Classic in the directory "C:\dataclassic".
ExeRun("C:\MyTools\WDConver.EXE " +...
"/WDD55=C:\WDProject\Project5\Project.WD5\Project.WDD" +...
"/WDD=""C:\My Projects\Project\Project.wdd" +...
"/SRCDIR=""C:\data"" /DSTDIR=c:\dataclassic")

Example for converting a single file

The following command line is used to convert a specific file:
ExeRun("C:\MyTools\WDConver.EXE " +...
"/WDD55=C:\WDProject\Project5\Project.WD5\Project.WDD " +...
"/WDD=C:\My Projects\Project\Project.wdd " +...
"/FILE=C:\data\exchange.fic /NAME=EXCHANGE " +...
"/DSTDIR=c:\dataclassic /NOREP")

Example of conversion via a Native Connector (or Native Access)

The following command line is used to convert the "DEMO.CUSTOMER" table via the Native Oracle Connector. The logical name of this table is "CUSTOMER" on the "MARS" server. The HFSQL Classic file will be created in the directory "c:\data".
ExeRun("C:\MyTools\WDConver.EXE " +...
"/MODE=EXTERN /DATASOURCE=MARS "+...
"/PROVIDER=WinDevOracle /USER=DEMO "+...
"/USERPWD=DEMO "+...
"/WDD=""C:\My Projects\test.ANA\test.wdd"""+...
"/DSTDIR=c:\data /FILE=DEMO.CUSTOMER /NAME=CUSTOMER")
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/03/2023

Send a report | Local help