CWD

Working directory

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows

 

 

The CWD initialization setting sets the working directory for your application.

Value

The directory path, including device specification, that will become the current working drive and directory.

Discussion

CWD must be set in the synergy.ini file only; setting CWD in the environment has no effect. This initialization setting causes the runtime to set its current working directory to the specified path. If CWD is set in the [myprog] section of synergy.ini (where myprog is any .dbr file), it takes effect only after the .dbr program file is located. For this reason, you cannot use CWD to switch the execution directory of the application’s main executable.

Setting location

The [synergy], [dbr], [dbl], [dblink], [dblibr], or [myprog] section of synergy.ini (where myprog is any .dbr file).

Used by

Compiler, runtime, linker, librarian, isutl, fcompare

Examples

In the synergy.ini file,

[synergy]
CWD=c:\synergy\dbl\apps