Skip to main content
Solved

Is there a way to check if FME form is licensed from the command line?


james_c_452
Supporter
Forum|alt.badge.img+7

Hi,

I haven't quite been able to work this out. Is there a way to check if FME form is licensed from the command line? Before you try to open FME.

I ask because I am making a batch file and I wish to check before it starts to let the user know if they need to update it

Any help would be appreciated

Regards

Best answer by david_r

Try the following command:

fme.exe info

The output will include information about:

Edition
Version
OS Locale Name
OS Encoding
Process Encoding
FME API version
Registration Key
Registration
Serial Number
Customer Number
Home Folder
Operating System

 You can then use e.g. Powershell to extract the license information from the "Registration" entry.

View original
Did this help you find an answer to your question?

2 replies

david_r
Celebrity
  • Best Answer
  • October 30, 2023

Try the following command:

fme.exe info

The output will include information about:

Edition
Version
OS Locale Name
OS Encoding
Process Encoding
FME API version
Registration Key
Registration
Serial Number
Customer Number
Home Folder
Operating System

 You can then use e.g. Powershell to extract the license information from the "Registration" entry.


james_c_452
Supporter
Forum|alt.badge.img+7
  • Author
  • Supporter
  • October 31, 2023

Thanks @david_r​ !

 

I ended up using a different method in a Windows batch because it was quicker for me not to work out how to use Powershell, but its the same result basically the same except that you need to know what the license is rather than being a wildcard.

 

find "*LICENSE_NAME*" "C:\\ProgramData\\Safe Software\\FME\\Licenses\\fme_license.dat"

if %ERRORLEVEL% EQU 0 (

echo FME is unlicensed

) else (

echo FME is licensed

)


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings