ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Tools / WDScript
  • Overview
  • How to proceed?
  • Running WDScript in command-line mode
  • Running WDScript in console mode
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
WDScript: use in command-line and console mode
Overview
Scripts created with WDScript can be run:
  • in command line.
  • in console mode. By running the script from the Windows console, you can write to the standard output.
How to proceed?

Running WDScript in command-line mode

To run WDScript in command-line mode, type the following command:
<WDScript path> /SCRIPT=<Script path>
where:
  • <WDScript path> is the full path to the WDScript.exe or WDScript64.exe file.
  • "/SCRIPT=" is the command that allows you to specify the script to be run.
  • <Script path> is the full path to the script to be run.
Example:
c:\WinDev64\Programs\WDScript64.exe /SCRIPT="C:\Temp\test.wl"

Running WDScript in console mode

To run WDScript in console mode:
  1. Open the Windows Run dialog box (Windows key + R).
  2. Type "cmd" and confirm.
  3. Enter the following command line:
    <WDScriptConsole path> /SCRIPT=<Script path>
    where:
    • is the full path to the WDScriptConsole.exe or WDScriptConsole64.exe file.
    • "/SCRIPT=" is the command that allows you to specify the script to be run.
    • <Script path> is the full path to the script to be run.
Example:
c:\WinDev64\Programs\WDScriptConsole.exe /SCRIPT="C:\Temp\test.wl" >"c:\temp\log.log"
Remark: The result of the Trace function will be displayed in the standard output. You can also use the WLanguage ConsoleWrite function in the script.
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/30/2023

Send a report | Local help