KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Launching 4D Server with a batch file using 8.3 filename format
PRODUCT: 4D | VERSION: 13.3 | PLATFORM: Win
Published On: June 11, 2013

When using a batch file to launch 4D or 4D Server on Windows, you can put quotes around the path to the executeable, but not the executable itself. With 4D this is not a problem but the Windows Command Interpreter (cmd.exe) may have issue when using 4D Server because of the space in the file name.

See the folowing examples:

START /D "C:\Program Files (x86)\4D\4D v13.3 Custom\4D Server\" 4D SERVER.exe

Will not work - The system tried to load 4D and pass Server.exe as a parameter.

START /D "C:\Program Files (x86)\4D\4D v13.3 Custom\4D Server\" "4D SERVER.exe"

Will not work - Another command interpreter is opened.

START /D "C:\Program Files (x86)\4D\4D v13.3 Custom\4D Server\4D SERVER.exe"

Will not work - The current directory is invalid.

START /D "C:\Program Files (x86)\4D\4D v13.3 Custom\4D Server\" 4DSERV~1.exe

Using the 8.3 naming convention will work!

You can obtain the 8.3 name of files by running the DIR command with the /x parameter (dir /x).

Here is an example that also launches a specific structure
START /D "C:\Program Files (x86)\4D\4D v13.3 Custom\4D Server\" 4DSERV~1.exe "c:\_4D\techTipTesting.4dbase\techTipTesting.4DB"

See Also: