On an email thread I was participating in today, Caleb Ruth pointed out an easy fix to a common inconvenience when administering FileMaker Server from the cmd line on Windows.
Last I looked, the FileMaker Server documentation did not cover updating the system environment PATH variable with the FileMaker Server path, but arguably it should. So perhaps at this point you’re saying, “huh?”
Bottom line is, there’s an easy way and a hard way to call fmsadmin, and the hard way is the default. Which would you rather type each time you need to invoke the tool?
So how do you set it up for the easy way?
You have to add the path to FileMaker Server to your environment path variable. On one of our servers running Microsoft Windows Server 2003 Standard Edition with PHP on it, the default values in the PATH variable were as follows:
As you can see, it doesn’t include “C:\Program Files\FileMaker\FileMaker Server\”. Fortunately that’s easily remedied. The field for the variables is very small, so I don’t recommend trying to edit it directly. Copy the existing value first and keep it in a safe place in case anything goes wrong and you need to restore the previous values. Then all you need to do is add the path to FileMaker Server in a text editor and paste it back in. On our example system here, that path is the default location for FileMaker Server, but make sure you adjust accordingly if you need to. The paths are separated by semi-colons. Since FileMaker Server has spaces in the path, enclose it in quotes:
Note: After you save this change, you will have to quit any instances of cmd.exe as any currently running instances will still have the old path variable.
So how to edit the path variable?
My Computer -> Properties -> Advanced -> Environment Variables -> System Variables -> Path -> Edit
Related posts:
- PHP’s max_execution_time different on Windows and Linux On Windows, the PHP INI variable, “max_execution_time,” is the maximum...
- Archiving Data Using FM10 Server Importing and Exporting Do you have a client that has a huge database...
- Use New Windows to Preserve State One of our collective pet-peeves at Soliant is when a...
Related posts brought to you by Yet Another Related Posts Plugin.
















|
Posted by jsmall on April 27, 2009 at 2:35 pm

Just a comment - the path to fmsadmin I believe should be:
“C:\Program Files\FileMaker\FileMaker Server\Database Server”
If you leave off the \Database Server part, AFAIK it won’t work. Leastways on a Win 2003 machine.