PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Command Line mode
  • Examples
  • Example for using a script:
  • Use example
  • Example for converting a single file
  • Example of conversion via a native access
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
WDConver : Use in command line mode
HFSQLAvailable 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 files>Character string containing the path of the Hyper File 5.5 files to convert.
/DSTDIR=<Directory of converted files>Character string containing the directory where the files converted into HyperFileSQL Classic format will be created.
/FILE=<Source file>Character string containing:
  • the path of the Hyper File 5.5 file to convert
  • the name of the table to convert on the server.
/NAME=<Logical name in the analysis 15 of the file to convert>Character string corresponding to the logical name of the 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 files
  • EXTERN: external files/tables (example: C/S database)
  • XML: XML files
  • TEXT: text files
/PROVIDER=<OLEDB provider or native access>Character string used to define the provider or the Native Access used to access data to convert.
For the native accesses, use the following character strings: WinDevOracle, WinDevSQLServer, WinDevInformix, ...
/DATASOURCE=<Name of the source (file or server)>Character string. This parameter is used when converting a file via Native Access, OLE DB provider, ...
Corresponds to the name of the data source.
/USER=<User name>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).
Note: 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 /?
Note: 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

Example for using 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 into HyperFileSQL Classic format in the "C:\dataclassic" directory.
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 access

The following command line is used to convert the "DEMO.CUSTOMER" table via the Native Oracle Access. The logical name of this table is "CUSTOMER" on the "MARS" server. The HyperFileSQL Classic file will be created in the "c:\data" directory.
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 required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment