Page 1 of 1

EMAILOUT - email not sent if folder moved

Posted: Fri Mar 10, 2006 10:26 am
by Garry
Capital launched with the following.

K:\capital\CAPWIN.EXE /CONFIG=K:\CAPITAL\PROFILES\MASTER\CAPWIN.INI /PASSWORD=MASTER

The capwin.ini defines the location of EMAILOUT being in K:\CAPITAL\PROFILES\MASTER\EMAILOUT

- If I modify Capwin.ini for EMAILOUT to be the default location being K:\Capital\EMAILOUT all is ok

- If I create a subfolder Master under EMAILOUT then modify again Capwin.ini for EMAILOUT to be in K:\Capital\EMAILOUT\Master
the EMI file appears there but no email is sent. That is, after print there is no top screen flicker as the email sent would produce.

- The location in the example capwin.ini has the same result as the previous example above.

Posted: Fri Mar 10, 2006 10:29 am
by COBS Tech Support
Please re-test with a shorter path and see if that your issue. The size of the command line string you can pass between apps is limited (somewhere around 100 characters in some versions of Windows).

Keep in mind that CAPITAL has to pass other information on the command line between apps, such as the user's password and which company is open, so if you start combining that information together with your /config string, its may exceed a Window's limitation.

There is a new feature in CAPITAL 7.4 that may help with issues of this type. As per the product documentation:

/CONFIG=$xxx$

This switch setting is similar to /CONFIG= except that it reads the contents of a system environment variable instead of a specific file name.

For example:/CONFIG=$CLIENTNAME$Will cause the system to read the environment variable CLIENTNAME and use this variable as the filename of the configuration .INI file to access. If CLIENTNAME contained "Smith.John" then the .INI file Smith.John.Ini would be used. The .INI file is always assumed to exist in the same folder that launched the CAPWIN.EXE program. If the specified .INI file does not exist, CAPITAL will automatically locate the file CAPWIN.INI found in the Windows folder, copy the contents of this file, and place it in the same folder as the one where CAPWIN.EXE was found. The new .INI file is also renamed from CAPWIN.INI to the name specified by the $xxx$ variable.