Is there anyway to get the project under which the file is present in MKS command line interface? I am new to CLI scripting for MKS and could not find any proper results.
All I want is
-> [command] [filename] -> [project path]/project.pj
Any help is greatly appreciated.
The command
si locate
with a specific configuration, can return the project/projects where a file is registered. This functionality is available only with DB back-end repository and will not work with RCS repository.If you want to get the project under which the file is located you must ensure that in the MKS repository exists only one file with this name, otherwise, you will get all projects where is located this file.
You can use this command, which for me works fine, or you can customize for your needs
si locate help